added cookie encrypt/decrypt