Canonicalizes plain text (MIME-encoded usually) according to RFC3156.
This function works as follows (in that order):
Parameters: | text – text to canonicalize (already encoded as quoted-printable) |
---|---|
Return type: | str |
Converts a GPGME hash algorithm name to one conforming to RFC3156.
GPGME returns hash algorithm names such as “SHA256”, but RFC3156 says that programs need to use names such as “pgp-sha256” instead.
Parameters: | hash_algo – GPGME hash_algo |
---|---|
Return type: | str |
Signs the given plaintext string and returns the detached signature.
A detached signature in GPG speak is a separate blob of data containing a signature for the specified plaintext.
Parameters: |
|
---|---|
Return type: | tuple of gpgme.NewSignature array and str |
Converts the given message to a string, without mangling “From” lines (like as_string() does).
Parameters: | mail – email to convert to string |
---|---|
Return type: | str |
Gets a key from the keyring by filtering for the specified keyid, but only if the given keyid is specific enough (if it matches multiple keys, an exception will be thrown).
Parameters: | keyid – filter term for the keyring (usually a key ID) |
---|---|
Return type: | gpgme.Key |