swift-hash
is an inline-only microframework providing generic, pure-Swift implementations of various hashes, checksums, and binary utilities.
The package vends the following library products:
-
Tools for encoding to and decoding from base-16 strings.
-
Tools for encoding to and decoding from base-64 strings.
-
Implements CRC-32 checksums.
-
Implements hash-based message authentication codes (HMACs) through protocols that types in the other modules conform to.
-
Implements the SHA-256 hashing function.