Cleaned up encryption script (again).