Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/01/2008, 15:29
Avatar de pragone
pragone
 
Fecha de Ingreso: diciembre-2007
Ubicación: Madrid
Mensajes: 223
Antigüedad: 16 años, 4 meses
Puntos: 2
Re: Encriptación y desencriptación de datos con AES_ENCRYPT y AES_DECRYPT

Ese es el problema. mira:
Código HTML:
mysql> select length(AES_ENCRYPT('yo','paolo'));
+-----------------------------------+
| length(AES_ENCRYPT('yo','paolo')) |
+-----------------------------------+
|                                16 |
+-----------------------------------+
1 row in set (0.00 sec)
Además, ten cuidado de marcar el campo como BINARY.