https://github.com/soenneker/soenneker.utils.sha3
A utility library for SHA-3 hashing
https://github.com/soenneker/soenneker.utils.sha3
csharp dotnet sha sha-3 sha3 sha3util utils
Last synced: 14 days ago
JSON representation
A utility library for SHA-3 hashing
- Host: GitHub
- URL: https://github.com/soenneker/soenneker.utils.sha3
- Owner: soenneker
- License: mit
- Created: 2023-12-03T18:13:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T11:55:29.000Z (over 1 year ago)
- Last Synced: 2024-05-22T12:05:27.409Z (over 1 year ago)
- Topics: csharp, dotnet, sha, sha-3, sha3, sha3util, utils
- Language: C#
- Homepage: https://soenneker.com
- Size: 469 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/soenneker.utils.sha3/)
[](https://github.com/soenneker/soenneker.utils.sha3/actions/workflows/publish-package.yml)
[](https://www.nuget.org/packages/soenneker.utils.sha3/)#  Soenneker.Utils.SHA3
### A utility library for SHA-3 hashingProviding methods for computing SHA3 hashes for strings and files. It supports hardware-accelerated hashing and has software fallbacks for non-hardware environments.
## Installation
```
dotnet add package Soenneker.Utils.SHA3
```## Registration
```csharp
services.AddSha3UtilAsScoped();
```## Usage
```csharp
string hash = sha3Util.HashString("example input");
``````csharp
string hash = await sha3Util.HashFile("/path/to/file.txt");
```