Encrypted string does not have a valid prefix

0
Hi,   I am using the encryption module in the application but it gives error: "Encrypted string does not have a valid prefix."   Can someone suggest what needs to be done?
asked
1 answers
0

You get that when you try to decrypt a String that hasn't been encrypted.

 

When you encrypt a String using the Encryption module it places the value of the EncryptionPrefix constant at the start of the encrypted value so it knowns how to decode it. If this prefix is missing, you'll get the error message "Encrypted string does not have a valid prefix".

 

I hope this helps.

answered