Implementation of the encryption functionality with PGP