Key clave = keyGen.generateKey(); //(another code lines are not specify here...)
Cipher cifrar = Cipher.getInstance("DES/ECB/PKCS5Padding");
String myPass="leo2013"; byte[] myPass2= myPass.getBytes("UTF8"); cifrar.init(Cipher.ENCRYPT_MODE, clave); byte[] cipherText = cifrar.doFinal(mPass2);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)