Skip to content

Es6 class that generates ETag using the same algorithm as S3 via MD5 sum.

License

Notifications You must be signed in to change notification settings

pyramation/etag-hash

Repository files navigation

ETag Hash Build Status

Es6 class that generates ETag using the same algorithm as S3 via MD5 sum.

Useful for verifying Amazon S3 multi-part uploads.

Installation

npm install etag-hash

Usage

const createHash = require('etag-hash').createHash;
const etag = createHash().update(contents).digest();

ETags compatible with s3, API similar to the crypto module to be compatible with streams. Thanks to the author of this post for the breakdown of the algorithm.

About

Es6 class that generates ETag using the same algorithm as S3 via MD5 sum.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published