Implementation of different cryptology in Java