crypt and decrypt on enter keypress in password box