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\_Ú<¬!C8óÇ°Í>
When I try to decrypt the value it returns a NULL result and reports that it was trying to decrypt: ÖÕ`a¼2¡1her\_Ú<¬!C8óÇ
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.
Subject
Views
Written By
Posted
26938
February 03, 2005 03:44PM
11385
March 29, 2005 07:54AM
9565
June 26, 2005 10:25PM
10406
July 23, 2005 10:39PM
14356
September 08, 2005 06:04AM
23971
September 08, 2005 06:47AM
7748
September 20, 2005 09:00AM
7305
November 21, 2005 11:09PM
6868
November 28, 2005 05:36AM
6674
November 28, 2005 08:21PM
6750
November 29, 2005 05:51PM
6688
February 18, 2006 06:34PM
6283
April 06, 2006 09:41AM
6538
April 07, 2006 01:28PM
7009
April 19, 2006 08:23PM
9257
May 08, 2006 04:33PM
8966
October 04, 2006 09:11AM
6152
February 20, 2008 12:58PM
6334
February 20, 2008 01:24PM
6219
January 06, 2007 07:26PM
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.