github openpgpjs/openpgpjs v3.1.0

latest releases: v6.0.0-beta.1, v6.0.0-beta.0, v5.11.1...
5 years ago
  • Fixes #737: allows checking expiration of keys by capabilities (encrypt, sign, or both) rather than just using the primary key expiration time

    NOTE: as explained in more detail below, this release is not backwards compatible with older versions for users relying on lower-level key functions such as getEncryptionKeyPacket and getKeyPackets. Please see the updated online documentation for details.

    • Renames subKey.subKey to subKey.keyPacket and aliases key.primaryKey as key.keyPacket.
    • Replaces await getEncryptionKeyPacket() with (await getEncryptionKey()).keyPacket.
    • Replaces getKeyPackets with getKeys and getSubkeyPackets with getSubkeys.
    • Adds functions that extract useful properties from keys that could previously only be found by directly searching in the primaryKey or subkey packet objects:
      • getKeyId
      • getFingerprint
      • getAlgorithmInfo
      • getCreationTime
      • isDecrypted

Don't miss a new openpgpjs release

NewReleases is sending notifications on new releases.