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
27790
February 03, 2005 03:44PM
11623
March 29, 2005 07:54AM
9758
June 26, 2005 10:25PM
10623
July 23, 2005 10:39PM
14684
September 08, 2005 06:04AM
24223
September 08, 2005 06:47AM
7968
September 20, 2005 09:00AM
7481
November 21, 2005 11:09PM
7069
November 28, 2005 05:36AM
6893
November 28, 2005 08:21PM
6952
November 29, 2005 05:51PM
6890
February 18, 2006 06:34PM
6463
April 06, 2006 09:41AM
6752
April 07, 2006 01:28PM
7186
April 19, 2006 08:23PM
9485
May 08, 2006 04:33PM
9205
October 04, 2006 09:11AM
6367
February 20, 2008 12:58PM
6544
February 20, 2008 01:24PM
6440
January 06, 2007 07:26PM
Re: using mySQL to store credit card info
5313
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.