supported()
supported() : boolean
Is this driver supported?
Returns
boolean —True if supported.
Abstract backend class to implement PGP functionality.
NOTE: This class is NOT intended to be accessed outside of this package. There is NO guarantees that the API of this class will not change across versions.
generateKey(array $opts) : mixed
Generates a personal public/private keypair combination.
array | $opts | Configuration:
|
False on error; an array on success consisting of the following keys/values:
encryptMessage(string $text, array $params) : string
Encrypts a message in PGP format using a public key.
string | $text | The text to be encrypted. |
array | $params | The parameters needed for encryption.
|
The encrypted message.
encryptSignature(string $text, array $params) : string
Signs a message in PGP format using a private key.
string | $text | The text to be signed. |
array | $params | The parameters needed for signing.
|
The signed message.
decryptMessage(string $text, array $params) : object
Decrypts an PGP encrypted message using a private/public keypair and a passhprase.
string | $text | The text to be decrypted. |
array | $params | The parameters needed for decryption.
|
An object with the following properties:
decryptSignature(string $text, array $params) : object
Decrypts an PGP signed message using a public key.
string | $text | The text to be verified. |
array | $params | The parameters needed for verification.
|
An object with the following properties: