MySQL Forums
Forum List  »  Security

Re: using mySQL to store credit card info
Posted by: Ethan Fox
Date: February 16, 2009 07:37PM

I am having trouble encrypting and decrypting a particular value. I am testing credit cards and using the example 4111111111111111 which is a standard test visa card.

The problem is that I can encrypt and decrypt lots of values, but not this one. To eliminate possible causes of problems, I am just trying this at the console level of MySQL server.

FOR EXAMPE: SELECT AES_ENCRYPT('4111111111111111','6afgCems46e6NC8JmVzFoN9eda471T')

Which yields: ÖÕ`a™Œ¼2¡1her\“_Ú<”¬!Cž8óÇ°Í>

When I try to decrypt the value it returns a NULL result and reports that it was trying to decrypt: ÖÕ`a™Œ¼2¡1her\“_Ú<”¬!Cž8óÇ

Please not that the last two encrypted characters are missing.

Not sure why the last two characters are missing or why this particular values, encrypted string is causing errors.

Options: ReplyQuote


Subject
Views
Written By
Posted
26938
February 03, 2005 03:44PM
7305
November 21, 2005 11:09PM
6750
November 29, 2005 05:51PM
Re: using mySQL to store credit card info
5094
February 16, 2009 07:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.