javascriptsha1

Is it possible to compute a file's SHA1 ID using Javascript?


If this were possible to do prior to posting a form, it may save me having to upload the file to my server...


Solution

  • To do that you would have to load the file's binary information into JavaScript. Which is not possible.

    But here's an implementation of SHA1 in JavaScript.