openpgp_encryption
Features
This module adds OpenPHP encryption to the encrypt module's ecosystem.
This is an asymmetrical encryption method.
If you want to use one encryption profile to encrypt and decrypt, you will need to use a private key, as this also contains data for the public key within the private key. For example: -
-----BEGIN PGP PRIVATE KEY BLOCK-----
Whatever the private key is...
-----END PGP PRIVATE KEY BLOCK-----
If you want to encrypt with a public key ONLY and need to decrypt the data later in Drupal, you will need to create another encryption profile to decrypt using the PRIVATE key and handle that use case. A public key looks like this: -
-----BEGIN PGP PUBLIC KEY BLOCK-----
Whatever the key public key is
-----END PGP PUBLIC KEY BLOCK-----
The encrypted data looks like this: -
-----BEGIN PGP MESSAGE-----
hQEMA6qXx8ZGQyPoAQf/REjgrvv1eeKK/oM85tjAMmKjOwqPh8E2B1oztj/57MbO
VSHMioL0yWJMJoQsF5QB1QRbd9rul638m6JRpZEvf9zxHxN35FBIfchhfPMs1uup
htpKxmTHHKeRTBYnbJ7Zp8ujuoi7xPvP6gcZqtXQ/615gA7HKppzCyJ+usN0dND4
ZdSQZu/Mo8lQJRYHfSQl9r4htd5WPpL/c4IK4eIN2J/53FOQk3HtXjguWKliKi1/
WZMKyXe1Ml/XNUm2JogA2DQN5AIynu2GdaYIYTnlTrPzcN/NP5V27S3l6sr8V2IJ
/LQhGlGbsekXEF9V4qCzRMZEOKpxyvYfic4YHWJVUNRJAQkCEB+IANZ6YgQKDWA9
TiA/DN2o+7u0uRB3y03Uho33SWL6nN1VuJM+cmUBDaRfZHbd1xsuE8s1BlnRloCs
2FwKjLIlyFNJpQ==
=BhPH
-----END PGP MESSAGE-----