MySQL Forums
Forum List  »  Security

Re: AES_ENCRYPT() in php
Posted by: Hristo Ganchev
Date: April 19, 2006 08:57PM

This is very similar to my problem. I use AES_ENCRYPT() and AES_DECRYPT to store credit card information. I have field which allows the credit cards to be from 13-18 to digits long. I make all of the necessary checks for the cards. Most of the card are 32 Bytes and some 16 Bytes (when imported in BLOB) , but from time to time, even repeating the same data I have 31 Bytes and 15 Bytes exactly with 1 Byte difference. If I get 31 or 15 Bytes I can not decrypt the cards. This is happening with rijndael-128 (php) and AES_ENCRYPT which should be the same.

Options: ReplyQuote


Subject
Views
Written By
Posted
18516
December 19, 2005 08:48AM
8538
March 10, 2006 01:21PM
Re: AES_ENCRYPT() in php
6532
April 19, 2006 08:57PM
6179
May 08, 2006 02:04PM


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.