SELECT AES_DECRYPT(AES_ENCRYPT('test', 'mysecret'), 'mysecret')
returns 74657374, which UNHEX() can’t do anything with. What am I doing wrong here?
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.
“74657374” is “test” in ASCII, displayed in hexadecimals. You are feeding UNHEX the wrong information, or you may need some way of transforming the resulting bytes into text.