Skip to content

Instantly share code, notes, and snippets.

@Bigous
Created November 9, 2015 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bigous/6837f242e2fa793ff429 to your computer and use it in GitHub Desktop.
Save Bigous/6837f242e2fa793ff429 to your computer and use it in GitHub Desktop.
Calculate SHA1 from a file (requires nodejs to be installed)
@echo off
node -e "require('fs').readFile('%~1',function(err, data){console.log(require('crypto').createHash('sha1').update(data).digest('hex'))})"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment