smarthash/ts/nodehash.md5.ts

6 lines
195 B
TypeScript
Raw Permalink Normal View History

2022-06-26 09:34:09 +00:00
import * as plugins from './nodehash.plugins.js';
2019-11-21 14:17:48 +00:00
export const md5FromString = async (stringToHash: string) => {
2020-10-05 15:07:28 +00:00
return plugins.crypto.createHash('md5').update(stringToHash).digest('hex');
2019-11-21 14:17:48 +00:00
};