14/12/2012, 18:38
|
| | Fecha de Ingreso: febrero-2005
Mensajes: 98
Antigüedad: 20 años Puntos: 0 | |
Respuesta: Encriptación 3DES Gracias, pero necesito algo equivalente en PHP a esta función que está en .NET
static TripleDES CreateDES(string key)
{
MD5 md5 = newMD5CryptoServiceProvider();
TripleDES des = newTripleDESCryptoServiceProvider();
des.Key = md5.ComputeHash(Encoding.Unicode.GetBytes(key));
des.IV = new byte[des.BlockSize / 8];
return des;
}
Alguien tiene alguna idea por favor?
Gracias |