Urara-Blog/node_modules/.pnpm-store/v3/files/5d/3f9c8997db825ea5b3c5d908a5cfefc0e2d135cf545d5f3b2a01d60ef096f3e0a8de5fe33434be5711882b33eaa9220b2bd94e299f78a7f03257b5e2014722
2022-08-14 01:14:53 +08:00

15 lines
370 B
Text

/*
Copyright 2018 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
import crypto from 'crypto';
export function getStringHash(input: crypto.BinaryLike): string {
const md5 = crypto.createHash('md5');
md5.update(input);
return md5.digest('hex');
}