cipher and decipher using basic java