PHP Classes

Problem encription text with AES

Recommend this page to a friend!

      AES Cipher  >  All threads  >  Problem encription text with AES  >  (Un) Subscribe thread alerts  
Subject:Problem encription text with AES
Summary:Problem encription long text with AES
Messages:5
Author:Usataque
Date:2009-02-13 04:11:41
Update:2010-02-02 11:14:38
 

  1. Problem encription text with AES   Reply   Report abuse  
Picture of Usataque Usataque - 2009-02-13 04:11:41
I have a text of about 800 characters, about 5 paragraphs. When I go to encrypt it encrypts the text with no problem, the problem is to decode the text, approximately decrypts the first 60 characters with no problems, the rest is not decoded.

I appreciate your cooperation with this matter.


*****************************************************************************

Tengo un texto de aproximádamente 800 caractéres, aproximadamente 5 párrafos. Cuando voy a encriptar el texto lo encripta sin ningún problema, el problema se presenta al desencriptar el texto, se desencripta aproximadamente los primeros 60 caractéres sin problemas, el resto no se desencripta.

Agradezco su colaboración con este tema.

  2. Re: Problem encription text with AES   Reply   Report abuse  
Picture of Stefano Stefano - 2009-04-22 17:32:18 - In reply to message 1 from Usataque
There's a bug in the AES.class.php functions
stringToHex() and hexToString()

I'm sending the updated AES.class.php code to the class author.
Stefano

  3. Re: Problem encription text with AES   Reply   Report abuse  
Picture of martincholt martincholt - 2009-08-18 23:15:00 - In reply to message 2 from Stefano
Apparently the changes haven't been released yet. How do you fix it?

  4. Re: Problem encription text with AES   Reply   Report abuse  
Picture of issueextra issueextra - 2009-09-17 04:27:17 - In reply to message 3 from martincholt
you fix it by using phpseclib's implementation:

phpseclib.sourceforge.net/

as noted in another post, it's significantly better than this one:

phpclasses.org/discuss/package/4238 ...

  5. Re: Problem encription text with AES   Reply   Report abuse  
Picture of Michaela Merz Michaela Merz - 2010-02-02 11:14:39 - In reply to message 4 from issueextra
Can you please point me to the function that should be used to replace hexToString?

Thanks.

mm.