Merged both decryption methods.