swift-hash
is an inline-only microframework providing generic, pure-Swift implementations of various hashes, checksums, and binary utilities.
The swift-hash library requires Swift 5.9 or later.
Platform | Status |
---|---|
🐧 Linux | |
🍏 Darwin | |
🍏 Darwin (iOS) | |
🍏 Darwin (tvOS) | |
🍏 Darwin (visionOS) | |
🍏 Darwin (watchOS) |
This 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 MD5 hashing function.
-
Implements hash-based message authentication codes (HMACs) through protocols that types in the other modules conform to.
-
Unimplemented: SHA-1 hashing function.
-
Implements the SHA-256 hashing function.