ecryption not working

gives error when encrypting