feat(md5): now creates md5 hashes
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import * as plugins from './nodehash.plugins';
|
||||
|
||||
export * from './nodehash.sha256';
|
||||
export * from './nodehash.md5';
|
||||
|
5
ts/nodehash.md5.ts
Normal file
5
ts/nodehash.md5.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import * as plugins from './nodehash.plugins';
|
||||
|
||||
export const md5FromString = async (stringToHash: string) => {
|
||||
return plugins.crypto.createHash('md5').update(stringToHash).digest("hex");
|
||||
};
|
Reference in New Issue
Block a user