Desencriptar(key1, key2, key3,
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 268.2.3/281 - Release Date: 14/03/2006
----- Original Message -----From: Alejandro NarancioSent: Wednesday, March 22, 2006 1:01 PMSubject: [JavaSOS] Re: Ejemplo de 3DES
public class cripto {
private SecretKey Clave;
private Cipher cif;
private Base64 b64;
public cripto(String clv) throws Exception {
b64 = new Base64();
Clave = new SecretKeySpec(b64.decode(clv), "DESede");
cif = Cipher.getInstance("DESede");
}
public String encripta(String claro) throws Exception {
cif.init(Cipher.ENCRYPT_MODE, Clave);
return b64.encode(cif.doFinal(claro.getBytes()));
}
public String decripta(String cript) throws Exception {
cif.init(Cipher.DECRYPT_MODE, Clave);
return new String(cif.doFinal(b64.decode(cript)));
}
Hola alguien tiene algun ejemplo de como encriptar con 3DES (TripleDes) / DESede???En lo posible. que sea una metodo.Encriptar(key1, key2, key3, mensaje)y
LSC. José Eduardo Razo Fabre, MSC
lalo...@gmail.com
JERFSoft (c)
Tel: +52 (222) 2432779
Cel: +52 (222) 4256305
ICQ: 110975687
AIM: goldenhawkr
YIM: jerfmx
MSN: imperi...@hotmail.com
Linux User: 356663
----- Original Message -----Sent: Wednesday, March 22, 2006 8:05 AMSubject: [JavaSOS] Re: Ejemplo de 3DES
Desencriptar(key1, key2, key3,