hi I have some AES encrypted fields in my database encrypted like
AES_ENCRYPT(data, ‘key’)
but in the database they now look like they have lots of quesitons marks and such like in them
any ideas what I have done wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should store the data in a
VARBINARYorBLOBcolumn. By using a text column, the client, and possibly the database at some times, is trying to convert the binary, non-text data to text. The question marks are a result of that when the binary data doesn’t match to a text character.