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
27613
February 03, 2005 03:44PM
11543
March 29, 2005 07:54AM
9699
June 26, 2005 10:25PM
10546
July 23, 2005 10:39PM
14570
September 08, 2005 06:04AM
24127
September 08, 2005 06:47AM
7895
September 20, 2005 09:00AM
7412
November 21, 2005 11:09PM
7014
November 28, 2005 05:36AM
6823
November 28, 2005 08:21PM
6887
November 29, 2005 05:51PM
6823
February 18, 2006 06:34PM
6404
April 06, 2006 09:41AM
6677
April 07, 2006 01:28PM
7136
April 19, 2006 08:23PM
9400
May 08, 2006 04:33PM
9129
October 04, 2006 09:11AM
6287
February 20, 2008 12:58PM
6466
February 20, 2008 01:24PM
6353
January 06, 2007 07:26PM
Re: using mySQL to store credit card info
5239
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.