0.0.3 • Published 10 years ago
hexdigest v0.0.3
Node hexdigest
Module to generate the hexdigest of a file.
Installation
npm install --save[-dev] hexdigestUsage
var hexdigest = require('hexdigest');
hexdigest('myfile.jpg', 'sha1', function(err, digest) {
if (!err) {
console.log(digest);
}
});Algorithms are the ones supported by the version of OpenSSL on the platform. Examples are 'sha1', 'md5', 'sha256', 'sha512', etc. On recent releases, openssl list-message-digest-algorithms will display the available digest algorithms.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request