Added res decryption