Added encrypt/decrypt KEY as a global variable