smarthash/ts/nodehash.md5.ts

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");
};