This content has been marked as final. Show 4 replies
There may be a newer version of that doc, for Java 6, but if so, I don't know where it is.
Simply converting the strings to binary and writing them to a file wouldn't help keep it encrypted. When the bonary is being converted back to String, it still becomes readable. What you need to do with the bytes you have obtained from the String is to encrypt the bytes using some encryption algorithm like AES , DES , Blowfish... and then write the encrypted bytes to some file.
The Java SE 6 version of the JCA document referenced by jverd can be found at [http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html|http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html].
Edited by: java_dm on Jun 22, 2008 8:51 PM