changed plain encryption to use pickle