Skip to content

Instantly share code, notes, and snippets.

@basarat
Created November 2, 2017 00:43
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Create md5 using TypeScript / JavaScript / NodeJS
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