Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- crypto = require('crypto');
- // ...
- hash = new crypto.createHash('md5');
- // ...
- data.value = new Buffer(stats.size);
- // ....
- hash.update(data.value.toString('utf8'));
- // or
- hash.update(data.value)
- // both resulting in "TypeError: HashUpdate fail"
- tag.value = hash.digest('base64');
Add Comment
Please, Sign In to add comment