Search code examples
google-chromegoogle-chrome-extensionoperachromiumopera-extension

Generating md5/sha1/sha256 hash of downloaded file in Chrome Extension


How can I generate downloaded file's MD5/SHA1/SHA-256 using chrome API or other way?


Solution

  • To generate MD5/SHA1 for file you need to access the file. At this stage extensions are just like advance webapps for most browsers. Native system support is not available to extensions for security purpose. File system API(http://www.w3.org/TR/FileAPI/) is not widely available or what is available is just for experimental.

    Check following:

    https://stackoverflow.com/a/768287/3260012

    I hope this will help you.