Digest

1.13.0

SHA1, SHA2, SHA3, SHAKE, HMAC, HKDF, MGF1, BLAKE2b
leif-ibsen/Digest

What's New

Release 1.13.0

2025-04-04T11:19:11Z

About Digest release 1.13.0:

  1. The number of message digest kinds has been extended
    to include SHA2-512/224 and SHA2-512/256

  2. The remaining API is unchanged from release 1.12.0

Digest

The Digest package provides the following functionality:

  • Message Digest algorithms - SHA1, SHA2 and SHA3
  • Blake2 Cryptographic Hash and Message Authentication Code
  • Extendable Output Functions - SHAKE and XOF
  • Hash Based Message Authentication Codes - HMAC
  • Key Derivation Functions - HKDF and X963KDF
  • Mask Generation Function - MGF1
  • Base64 encoding of bytes to text strings and the reverse decoding
  • Base64 PEM encoding and decoding typically used to encode and decode cryptographic keys
  • Conversion between byte arrays and hexadecimal strings

Digest requires Swift 5.0. It also requires that the Int and UInt types be 64 bit types.

Its documentation is build with the DocC plugin and published on GitHub Pages at this location:

https://leif-ibsen.github.io/Digest/documentation/digest

The documentation is also available in the Digest.doccarchive file.

Please note that the random number functionality that used to be in the Digest package, is now in the SwiftRandom package.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri May 16 2025 00:42:08 GMT-0900 (Hawaii-Aleutian Daylight Time)