https://github.com/rarestype/h
hashes, checksums, and hextools for server applications
https://github.com/rarestype/h
autosync crc32 hash hmac-sha256 pbkdf2-sha-256 swift swift-server
Last synced: 2 months ago
JSON representation
hashes, checksums, and hextools for server applications
- Host: GitHub
- URL: https://github.com/rarestype/h
- Owner: rarestype
- License: apache-2.0
- Created: 2022-01-26T21:26:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2026-03-28T06:24:26.000Z (2 months ago)
- Last Synced: 2026-03-28T11:23:22.674Z (2 months ago)
- Topics: autosync, crc32, hash, hmac-sha256, pbkdf2-sha-256, swift, swift-server
- Language: Swift
- Homepage: https://swiftinit.org/docs/h
- Size: 159 KB
- Stars: 28
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Notice: NOTICE
Awesome Lists containing this project
README
🌟 **h** ⚡
an inline-only microframework of generic pure-swift hashes, checksums, and binary utilities
[documentation and api reference](https://swiftinit.org/docs/h)
## Requirements
The h library requires Swift 6.0 or later.
| Platform | Status |
| -------- | ------|
| 💬 Documentation | [](https://github.com/rarestype/h/actions/workflows/Documentation.yml) |
| 🐧 Linux | [](https://github.com/rarestype/h/actions/workflows/Tests.yml) |
| 🍏 Darwin | [](https://github.com/rarestype/h/actions/workflows/Tests.yml) |
| 🍏 Darwin (iOS) | [](https://github.com/rarestype/h/actions/workflows/Tests.yml) |
| 🍏 Darwin (tvOS) | [](https://github.com/rarestype/h/actions/workflows/Tests.yml) |
| 🍏 Darwin (visionOS) | [](https://github.com/rarestype/h/actions/workflows/Tests.yml) |
| 🍏 Darwin (watchOS) | [](https://github.com/rarestype/h/actions/workflows/Tests.yml) |
| 🤖 Android | [](https://github.com/rarestype/h/actions/workflows/Tests.yml) |
[Check deployment minimums](https://swiftinit.org/docs/h#ss:platform-requirements)
## products
This package vends the following library products:
1. [`Base16`](https://swiftinit.org/docs/h/base16)
Tools for encoding to and decoding from base-16 strings.
1. [`Base64`](https://swiftinit.org/docs/h/base64)
Tools for encoding to and decoding from base-64 strings.
1. [`CRC`](https://swiftinit.org/docs/h/crc)
Implements [CRC-32](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksums.
1. [`MD5`](https://swiftinit.org/docs/h/md5)
Implements [MD5](https://en.wikipedia.org/wiki/MD5) hashing function.
1. [`MessageAuthentication`](Sources/MessageAuthentication)
Implements [hash-based message authentication codes](https://en.wikipedia.org/wiki/HMAC) (HMACs) through protocols that types in the other modules conform to.
1. [`SHA1`](https://swiftinit.org/docs/h/sha1)
Unimplemented: [SHA-1](https://en.wikipedia.org/wiki/SHA-1) hashing function.
1. [`SHA2`](https://swiftinit.org/docs/h/sha2)
Implements the [SHA-256](https://en.wikipedia.org/wiki/SHA-2) hashing function.
1. [`UUID`](https://swiftinit.org/docs/h/uuid)
Provides a UUID type.