Skip to content

Instantly share code, notes, and snippets.

@nuffin
Forked from basarat/md5.ts
Created February 20, 2024 00:57
Show Gist options
  • Save nuffin/bfcd42c84666bd02909d1b3d0f3f7814 to your computer and use it in GitHub Desktop.
Save nuffin/bfcd42c84666bd02909d1b3d0f3f7814 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