[How to Encrypt and Decrypt Strings in JAVA using Standard Java JCE library] Cipher : Java Glossary

Here’s how to encrypt and decrypt a message using CipherOutputStream/ CipherInputStream The methods used are all part of Sun’s JCE. Sun’s JCE documenation is all but useless. You pretty well have to Google the web to find sample code to use these methods for particular algorithms and block modes. Pay attention to string encoding/decoding and padding issues.

Comments are closed.

permalink