Updated encryption, prepared for file writing.