Secret Key Format
843810Nov 19 2002 — edited Nov 20 2002Hello,
I need no insert a key in TDES CBC specific without the key generator, so i use the next code.
String ClaveEncript="6AkNhjsLuxOO7wbutOzqoogxa1sZ9IPQ";
byte[] rawkey = ClaveEncript.getBytes();
DESedeKeySpec keyspec = new DESedeKeySpec(rawkey);
SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("DESede");
key = keyfactory.generateSecret(keyspec);
I require no have a key of 32 text chars (representation base 64 of 24 bytes).
How can i do this.
Any help would be appreciated.
Thanks.