Cryptography Tutorials - Herong's Tutorial Examples - Version 5.33, by Dr. Herong Yang
Private key and Public Key Pair Generation
This chapter provides tutorial notes and example codes on private key and public key pair generation. Topics include public key encryption algorithms, RSA, DSA and DiffieHellman; private key and public key pair generation class and sample program; RSA, DSA, and DiffieHellman key pair samples.
Sample programs listed in this chapter have been tested with JDK 1.3 to 1.6.
Question: Key pairs are used to encrypt and decrypt data. But how to encrypt and decrypt data? Which classes and methods to use?
Table of Contents