Skip to content

Evobolics/Evo.Keccak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evo.Keccak

An implementation of the Keccak-f[1600] algorithm.

The package is located on nuget.org.

This code was originally forked from the Meadow under the MIT license.

Usage

Install Package Evo.Keccak

using System;

// Example 1
string input = "Gig'em";

var result = input.HashToKeccak256().ToHexString(hexPrefix: false);

// Example 2

var bytes = input.GetUtf8Bytes();

var result = bytes.HashToKeccak256Bytes();

Notes

Books on Keccak and SHA-3

Papers on Keccak and SHA-3 (note, they are slightly different)

Articles on Keccak and SHA-3

Videos on Keccak and SHA-3

List of Keccek Implementations in various Languages

Implementation Benchmarks

|     Method |                input |     Mean |     Error |    StdDev | Ratio | RatioSD |
|----------- |--------------------- |---------:|----------:|----------:|------:|--------:|
| Teaching_1 | The q(...)y dog [43] | 2.846 us | 0.0549 us | 0.0588 us |  1.48 |    0.04 |
| Teaching_2 | The q(...)y dog [43] | 2.825 us | 0.0561 us | 0.0525 us |  1.47 |    0.04 |
|  Optimized | The q(...)y dog [43] | 1.925 us | 0.0326 us | 0.0289 us |  1.00 |    0.00 |

Releases

No releases published

Packages

No packages published

Languages