encrypt global var