Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jordanbaird/hashgenerator
Generate hash digests using commonly available hash algorithms
https://github.com/jordanbaird/hashgenerator
cryptography generate hash hashgenerator hashing md5 sha sha1 sha256 sha384 sha512 swift
Last synced: 20 days ago
JSON representation
Generate hash digests using commonly available hash algorithms
- Host: GitHub
- URL: https://github.com/jordanbaird/hashgenerator
- Owner: jordanbaird
- License: mit
- Created: 2022-09-29T03:15:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-09T14:45:54.000Z (over 1 year ago)
- Last Synced: 2024-05-01T13:48:37.342Z (7 months ago)
- Topics: cryptography, generate, hash, hashgenerator, hashing, md5, sha, sha1, sha256, sha384, sha512, swift
- Language: Swift
- Homepage:
- Size: 308 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HashGenerator
A simple class for generating hash digests using commonly available hash algorithms.
## Install
Add the following dependency to your `Package.swift` file:
```swift
.package(url: "https://github.com/jordanbaird/HashGenerator", from: "0.0.2")
```## Usage
[Read the full documentation here](https://swiftpackageindex.com/jordanbaird/HashGenerator/documentation)
```swift
let generator = HashGenerator(using: .sha256)
let digest = generator.hash("Hello")
print(digest)
// Prints '185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969'
```