Updated encryption.py