A simple program to learn cryptography in java