Cipher : Java Glossary

Cipher
Here’s how to encrypt and decrypt a message using CipherOutputStream/ CipherInputStream The methods used are all part of Sun’s JCE (Java Cryptography Extension). 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.

AES (Advanced Encryption Standard) Encryption

Requires

RSA (Rivest, Shamir and Adelman) Public/Private Key Encryption

Requires sender to know public key of receiver, and receiver requires the corresponding private key.

Learning More

The Javadoc is almost useless. All the methods have undocumented parameters that are specific to various algorithms. Your best bet is to scour the Internet with Google, e.g. search for PBE DECRYPT_MODE to find Java source code listings where people used the PBE (Password Based Encryption) algorithm and Cipher. DECRYPT_MODE to decrypt messages. Beware, much of the code you will find is not working properly. People posted it seeking help getting it to work. Another source of information is books on JCE.
Oracle’s Javadoc on Cipher class : available:
Oracle’s Javadoc on CipherInputStream class : available:
Oracle’s Javadoc on CipherOutputStream class : available:
Oracle’s Javadoc on KeyGenerator class : available:
Oracle’s Javadoc on SecretKey class : available:
Oracle’s Javadoc on SecretKeySpec class : available:
Oracle’s Technote Guide on cryptography algorithm names : available:


CMP homejump to top

available on the web at:

http://mindprod.com/jgloss/cipher.html
  

optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\cipher.html
logo
Please email your , letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email. If you want your message, your name or email kept confidential, not considered for public posting, please explicitly specify that. Unless you state otherwise, I will treat your message as a letter to the editor that I may or may not publish in the feedback section. After that, it will be too late to retract it. If you disagree with something I said, especially when sending an ad-hominem attack, a rant composed mainly of obscenities or a death threat, please quote the offending passage and cite the web page where you found it, tell me why you think it is wrong, and, if possible, provide some supporting evidence. I can’t very well fix erroneous or ambiguous text if I can’t find it.
Blog
IP:[65.110.21.43]
Your face IP:[184.73.74.47]
You are visitor number 11.