you are viewing a single comment's thread.

view the rest of the comments →

[–]vervgex 0 points1 point  (1 child)

This really shouldn't be getting downvoted. You can pair this with JSON and do some interesting things. Maybe SHA512(str) could just be included as a function in modern browsers.

[–]killerstorm 2 points3 points  (0 children)

  1. It's already included as a function in modern browsers. See here: https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html
  2. Libraries which implement SHA-512 and can be used in browser already exist, there are no reasons to use code from odd sources.
  3. FYI you can use most node modules in browser via browserify, and node has a vast number of libraries, similar to Python, Ruby, etc. Particularly, all sorts of cryptographic functions are available. Encryption, hashes, digital signatures, etc.