Java implementation of some ciphers