Encrypt and decrypt. Works perfectly for BMP file. Checking for all formats