for some reason calling crypt.decrypt works but not crypt.encrypt. please take a look