smarthash/ts/nodehash.md5.ts
2019-11-21 14:20:57 +00:00

9 lines
207 B
TypeScript

import * as plugins from './nodehash.plugins';
export const md5FromString = async (stringToHash: string) => {
return plugins.crypto
.createHash('md5')
.update(stringToHash)
.digest('hex');
};