smarthash/ts/nodehash.md5.ts
2020-10-05 15:07:28 +00:00

6 lines
192 B
TypeScript

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