Skip to content

SHA1, SHA2, SHA3, SHAKE, HMAC, HKDF, MGF1, BLAKE2b

License

Notifications You must be signed in to change notification settings

leif-ibsen/Digest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

SHA1, SHA2, SHA3, SHAKE, HMAC, HKDF, MGF1, BLAKE2b

Resources

License

Stars

Watchers

Forks

Packages

No packages published