Why is AES_DECRYPT returning null?

前端 未结 4 2022
小鲜肉
小鲜肉 2020-12-18 04:04

I\'ve found similar questions, but no clear answer for this question. I have this table:

CREATE DATABASE testDB DEFAULT CHARACTER SET utf8 COLLATE utf8_gener         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-18 04:35

    Did you try different values other than 'Testname'? Do other values work?

    I ask because I had a situation while testing 2 test credit card numbers where one decrypted fine and the other returned null.

    The answer was to hex and unhex as suggested by "abhinai raj"

提交回复
热议问题