December 27, 201114 yr I would like to know if it is possible to use the PBEWithMD5AndTripleDES algorithm in the EncryptDES and DecryptDES functions and thus use the more secure 3DES algorithm. It seems to work in the demo file, but I would like to be sure that it actually works the way I think it does just by replacing the PBEWithMD5AndDES with PBEWithMD5AndTripleDES or if it is necessary to also change parameters or other parts of the script. Cheers.
December 28, 201114 yr Author As a followup on my own question, I have found that this works well on the Mac, but on Windows with Java 6 update 30 it fails with the following exception when trying to decrypt a phrase: java.security.InvalidKeyException: Illegal key size
December 28, 201114 yr I'm not an encryption expert, but this seems to be the answer to the java.security.InvalidKeyException: Illegal key size exception.
January 11, 201214 yr Author Thanks for the info, Valentin. Didn't see your reply until now. I ended up using the regular PBEWithMD5AndDES algorithm as it was sufficient for the client's needs.
May 11, 20205 yr Hello, I am trying encryptDES function, but I need the result in hexadecimal. Is it possible ? Thanks.
Create an account or sign in to comment