Basic cryptosystem Java implementations