Added some methods related to encryption.