-
-
Save nuffin/bfcd42c84666bd02909d1b3d0f3f7814 to your computer and use it in GitHub Desktop.
Create md5 using TypeScript / JavaScript / NodeJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as crypto from 'crypto'; | |
export const md5 = (contents: string) => crypto.createHash('md5').update(contents).digest("hex"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment