Java cryptography example.