Encryption alone does not hide global variables and their values. A Show Globals() command displays them normally. If you want to hide global variables in an encrypted script, you can give them special names.
Any global variable whose name begins with two underscore characters (__) is hidden, and Show Globals() displays neither its name nor its value. For example:
myvar = 2;
__myvar = 5;
Show Symbols();
// Globals
myvar = 2;
// 2 Global (1 Hidden)
This strategy works whether your script is encrypted or not.