Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koenpunt/node-hexdigest
Node module to generate hexdigest for a file
https://github.com/koenpunt/node-hexdigest
algorithm hexdigest node
Last synced: about 1 month ago
JSON representation
Node module to generate hexdigest for a file
- Host: GitHub
- URL: https://github.com/koenpunt/node-hexdigest
- Owner: koenpunt
- License: mit
- Created: 2015-08-30T09:40:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-01T14:41:42.000Z (about 9 years ago)
- Last Synced: 2024-10-05T07:11:05.986Z (about 1 month ago)
- Topics: algorithm, hexdigest, node
- Language: JavaScript
- Homepage: http://npmjs.org/package/hexdigest
- Size: 180 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node hexdigest
Module to generate the hexdigest of a file.
## Installation
```
npm install --save[-dev] hexdigest
```## Usage
```js
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
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request