Andreas T. Posted December 27, 2011 Share Posted December 27, 2011 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. Link to comment Share on other sites More sharing options...
Andreas T. Posted December 28, 2011 Author Share Posted December 28, 2011 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 Link to comment Share on other sites More sharing options...
Valentin Posted December 28, 2011 Share Posted December 28, 2011 I'm not an encryption expert, but this seems to be the answer to the java.security.InvalidKeyException: Illegal key size exception. 1 Link to comment Share on other sites More sharing options...
Andreas T. Posted January 11, 2012 Author Share Posted January 11, 2012 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. Link to comment Share on other sites More sharing options...
jsubiros Posted May 11, 2020 Share Posted May 11, 2020 Hello, I am trying encryptDES function, but I need the result in hexadecimal. Is it possible ? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 1439 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now