Encryption and decryption working with simple test