Loading

PGPINFO

crypto

The PGPINFO function outputs informations about the keys contained in a PGP key ring previously extracted by PGPRING.

It outputs a MAP keyed by key id and with values which are MAPs containing the following fields:

KeyDescription
keyidUppercase 64 bits hecadecimal key id.
fingerprintLowercase hexadecimal full key fingerprint.
uidList of uids associated with the key. Each uid is a byte array (BYTES).
bitsKey strength in bits.
algorithmAlgorithm used by the key, can be one of RSA_GENERAL, RSA_SIGN, RSA_ENCRYPT, ELGAMAL_GENERAL, ELGAMAL_ENCRYPT, DSA, ECDH, ECDSA, DIFFIE_HELLMAN, EDDSA, and UNKNOWN_xx for yet unsupported algorithms.
masterBOOLEAN indicating whether or not the key is a master key.
signingBOOLEAN indicating if the key can be used for signing.
encryptionBOOLEAN indicating if the key can be used for encryption.
expiryTimestamp at which the key expires, in platform time units since the Unix Epoch. 0 means no expiration.
pubkeyPGP public key with this key id.
attributesList of key attributes, each attribute is a byte array. The only supported attribute at the moment is JPEG images.
PGPINFO is available since version 3.0.0.

See also

Signatures

Examples

'-----BEGIN%20PGP%20PUBLIC%20KEY%20BLOCK-----%0AVersion%3A%20PGP%202.6.2%0A%0AmQCNAiv8ZoAAAAEEAKc4d45hN5qFM79nWGLkrGWputWmtdxJk0BZEbi0kNRbJBC2%0Ap10ASImd%2F%2FcCDwLR2alBUSt8O2WGik9PBZgthjMOenoDmzKiG8BkE9AFKonyxvD2%0AlDnqbydXi%2BYQmOTsWSw4jTTSb3cflhVkf8hVUVpMFQThafV0CmV5hLjHqWbdAAUR%0AtCJQaGlsaXAgUi4gWmltbWVybWFubiA8cHJ6QGFjbS5vcmc%2BiQCVAgUQLB48XPTK%0AAIGN5yLZAQHWtwP%2FRBiLPN4dnt8sm9qZtK0HPYV0hfdZ4IiSfR0V52uKKMQsIrBJ%0Ax2c5Z2vurBLeKkh8Oecf%2FX%2BZh2mEenrymR%2FurBCf8xGQnyTPew4t%2F3IQ5KXsqi2b%0AuOTysk9Pkk%2BcqxZTEXJQWixB3fVKrCkR02xbWcRXQ%2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