sha-3

Simple implementation of SHA-3 Keccak hashing to the wrong output in C#?

寵の児 提交于 2019-12-01 11:29:12
问题 I'll keep it short and simple! I'm learning C#, and I am trying to get the HashLib library @ https://hashlib.codeplex.com/ working for the new SHA-3 Keccak algorithm. I've written a simple Console/Win32 application that supposedly has to output the correct hash code, but it doesn't! using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Diagnostics; using HashLib; using System.Threading.Tasks; namespace ConsoleApplication5 { class

PHP SHA3 functionality

家住魔仙堡 提交于 2019-11-29 02:45:15
问题 Is there a framework or function that allows me to use SHA3-512? I don't want a extension like Strawbrary 回答1: It's possible. Maybe too late, but I've worked on a pure-PHP implementation here: SHA3-224/256/384/512 SHAKE128/256 (arbitrary output size) LGPL 3+ Works in PHP 5.2+ (considerably slower on older PHP ) No extensions required. Moderately well tested. Based on the (public domain) reference implementation in C . Arbitrary input size. It is a simple and fast implementation in PHP (which