Git Product home page Git Product logo

ftools's People

Contributors

fastily avatar whym avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ftools's Issues

text2hash: Wrong algorithm used for SHA3-512

I was linked to text2hash from this Wikipedia page. I then wanted to make sure I could replicate the results and when I tried, I found that other hash tools resulted in a different hash.

I believe this is because the function that is being called from CryptoJS is actually using the Keccak-512 algorithm. If you look at the Google Code Archive for CryptoJS, and scroll to the NOTE they mention that the SHA3 function is misnamed.

If you use the input hello world as an example, when using text2hash in the sha3-512 mode, its result matches the output from the Keccak-512 hash algorithm.

text2hash (sha3-512):
3ee2b40047b8060f68c67242175660f4174d0af5c01d47168ec20ed619b0b7c42181f40aa1046f39e2ef9efc6910782a998e0013d172458957957fac9405b67d

emn178's tool (sha3-512):
840006653e9ac9e95117a15c915caab81662918e925de9e004f774ff82d7079a40d4d27b1b372657c61d46d470304c88c788b3a4527ad074d1dccbee5dbaa99a

emn178's tool (Keccak-512):
3ee2b40047b8060f68c67242175660f4174d0af5c01d47168ec20ed619b0b7c42181f40aa1046f39e2ef9efc6910782a998e0013d172458957957fac9405b67d

I also tested this locally with the program HashTab which verified my conclusion.

To fix this, I think you should relabel the dropdown option of "sha3-512 (strong)" to "Keccak-512 (strong)". People on Wikipedia have been using this tool to create their Confirmed Identity Hashes, and if someone checks the hash without using this specific tool, they will get the "wrong" result for sha3-512. I suggested adding a note to the website explaining this change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.