Hi all,
In our client/server based application, I am adding encryption/decryption of password using javax.crypto package. I am planning to use DES algorithm. I have two questions here:
1. Usig the key: Can i use SecretKey class for generating the keys on client and server side, Like this :
SecretKey key = KeyGenerator.getInstance("DES").generateKey();
2. I want to return a
String after I decrypt it. I got a sample implementation which returns a string using Base64 encoder/decoder. However I want to stay away from using these two classes.
What r the ways ?
Thanks,