dmarman / sha256algorithm Goto Github PK
View Code? Open in Web Editor NEWSha256 Algorithm Explained
Sha256 Algorithm Explained
Hi, love your visualisation!
I have a question, when I pass in the input this
, I get the result as 1eb79602411ef02cf6fe117897015fff89f80face4eccd50425c45149b148408
, however when I do it the "usual" way:
# Mac
❯ echo 'this' | sha256sum
c18d547cafb43e30a993439599bd08321bea17bfedbe28b13bce8a7f298b63a2 -
# OpenBSD
$ echo 'this' | sha256
c18d547cafb43e30a993439599bd08321bea17bfedbe28b13bce8a7f298b63a2
Could you please confirm?
Hi! Thanks a lot for the tool, it's really amazing.
I spotted a minor issue with the colour of the text bleeding into the work XOR
in step 2. I'm using Firefox 96.0
To reproduce:
This is a test input
R
in XOR
at the end of the line right shift 3
is redSee the attached screenshot
Thanks again!
Not really an issue, more like a feature request.
It would be nice to also be able to enter a hex-string as an input.
Hex input is interpreted incorrectly when an odd number of characters is used. For example, when fff
is used as the input, it will cause the data to be 11111111 00001111
.
Hex input with an odd length should probably just be rejected. In any case, the current behavior doesn't really make sense and is also inconsistent with what happens when just 1 hex digit is used as an input (f
for example is interpreted as 00001111
, which kinda makes sense, but by that logic fff
should be interpreted as 00001111 11111111
, not 11111111 00001111
).
Awesome visualization!
I found some of the controls to be a little surprising, compared to a typical CD/DVD/video player. Here are the actions, their current icons, and a suggested icon that I think more people would expect:
(the same apply to the reverse direction as well).
References:
There are two issues with the instructions displayed for step 0 when an hex input is used:
Note that it's only the instructions (in the leftmost column, under the message block) that are incorrect. Everything else is fine and the hash is computed correctly.
Oh and thank you so much for this tool, it's brilliant!
Heya, small visual glitch I've found.
If the current step is still filling the Message schedule, and you edit/append the input, the correct representation of the next word/next step in the scheduleis also shown/calculated, in stead of zero'd out.
https://sha256algorithm.com/ is currently down
Hello!
Your tool is absolutely amazing!
But I have a suggestion, that I'm sure you can easily implement.
Now all internal variables have binary radix. How about adding a selector to change binary radix to hex.
Sometime it is really usefull to see internals in hex, rahter than binary.
Thanks a lot again!
Best regards!
@dmarman LOVE what you have done here!!!
Congratulations, it's amazingly beautiful project and implementation, I'm learning and enjoying in the process.
I only wanted to suggest you a new feature, which I think would help a lot... keyboard navigation!
Using the keyboard to interact with the algorithm, like so:
Play: SPACE (start/stop)
Advance 1: right arrow
Go Back 1: Left arrow
Next 10: Up arrow
Previous 10: Down arrow
Anyway, thanks for doing this and sharing it with the world! AMAZING!
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.