Basic cipher to encrypt/decrypt