updating encryption.py