blob: 24ac04c1ad5346f7ee00b5bee8c927c0d844e1d2 (
plain)
1
2
3
4
5
6
7
8
|
const crypto = require('crypto');
export default (data: ArrayBuffer) => {
const buf = new Buffer(data);
const hash = crypto.createHash("md5");
hash.update(buf);
return hash.digest("hex");
};
|