All Projects → kornrunner → php-keccak

kornrunner / php-keccak

Licence: MIT license
Pure PHP implementation of Keccak (SHA-3)

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to php-keccak

Jssha
A JavaScript/TypeScript implementation of the complete Secure Hash Standard (SHA) family (SHA-1, SHA-224/256/384/512, SHA3-224/256/384/512, SHAKE128/256, cSHAKE128/256, and KMAC128/256) with HMAC.
Stars: ✭ 2,089 (+2010.1%)
Mutual labels:  sha-3, sha3-256
sha3
SHA3 for Ruby is a XKCP based native (C) binding to SHA3 (FIPS 202) cryptographic hashing algorithm
Stars: ✭ 35 (-64.65%)
Mutual labels:  keccak
TripleSecManaged
A C# port of the TripleSec encryption scheme created by Chris Coyne, Maxwell Krohn, and Filippo Valsorda
Stars: ✭ 18 (-81.82%)
Mutual labels:  keccak
SHA3ImplementedInsideofaRARfile
The Keccak hash algorithm implemented inside of a RAR archive using the RAR filter assembly language
Stars: ✭ 21 (-78.79%)
Mutual labels:  keccak
hash-wasm
Lightning fast hash functions using hand-tuned WebAssembly binaries
Stars: ✭ 382 (+285.86%)
Mutual labels:  keccak
libkeccak
[Basically feature complete] Keccak-family hashing library
Stars: ✭ 53 (-46.46%)
Mutual labels:  keccak
noble-hashes
Audited & minimal JS implementation of SHA2, SHA3, RIPEMD, BLAKE2/3, HMAC, HKDF, PBKDF2 & Scrypt
Stars: ✭ 213 (+115.15%)
Mutual labels:  keccak

php-keccak Tests Coverage Status Latest Stable Version

Pure PHP implementation of Keccak (SHA-3)

Usage

<?php

use kornrunner\Keccak;

Keccak::hash('', 224);
// f71837502ba8e10837bdd8d365adb85591895602fc552b48b7390abd

Keccak::hash('', 256);
// c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470

Keccak::hash('', 384);
// 2c23146a63a29acf99e73b88f8c24eaa7dc60aa771780ccc006afbfa8fe2479b2dd2b21362337441ac12b515911957ff

Keccak::hash('', 512);
// 0eab42de4c3ceb9235fc91acffe746b29c29a8c366b7c60e4e67c466f36a4304c00fa9caf9d87976ba469bcbe06713b435f091ef2769fb160cdab33d3670680e

Keccak::shake('', 128, 256);
// 7f9c2ba4e88f827d616045507605853ed73b8093f6efbc88eb1a6eacfa66ef26

Keccak::shake('', 256, 512);
// 46b9dd2b0ba88d13233b3feb743eeb243fcd52ea62b81b82b50c27646ed5762fd75dc4ddd8c0f200cb05019d67b592f6fc821c49479ab48640292eacb3b7c4be

Ethereum 0x9c7b7a00972121fb843af7af74526d7eb585b171

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].