0xbb / php-sha3 Goto Github PK
View Code? Open in Web Editor NEWPure PHP implementation of SHA-3
License: MIT License
Pure PHP implementation of SHA-3
License: MIT License
Why Java result and PHP result different
There length is setting SHA3-224 the Java code that URL
https://gist.github.com/jeok70/ff62b90e703a054d4df4
SHA3-224 result : (Input:"123")
PHP : 602bdc204140db016bee5374895e5568ce422fabe17e064061d80097
JAVA: 5c52615361ce4c5469f9d8c90113c7a543a4bf43490782d291cb32d8
As title, the hash_hmac
function supports the sha-3
algorithms since PHP 7.1
.
I think it should be better than using this PHP package and this should support before PHP 7.1
version.
See more details about this.
Thanks.
in the keccak64() function, on line 123, I'm getting warnings of "A non-numeric value encountered".
I understand that $temp is padded with 0's on line 120.
I'm testing it with randomly generated strings and the hashed results match https://emn178.github.io/online-tools/sha3_512.html's results. So, it's definitely not broken functionality or anything. I'm just curious if it is something that needs fixing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.