Skip to content

Instantly share code, notes, and snippets.

@basarat
Created November 2, 2017 00:43
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save basarat/90cf19f5f13db6213fcb1d1292f4e931 to your computer and use it in GitHub Desktop.
Save basarat/90cf19f5f13db6213fcb1d1292f4e931 to your computer and use it in GitHub Desktop.
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