UNPKG

@ocap/util

Version:

utils shared across multiple forge js libs, works in both node.js and browser

4 lines (3 loc) 162 B
import crypto from 'crypto'; // eslint-disable-next-line import/prefer-default-export export const md5 = (x) => crypto.createHash('md5').update(x).digest('hex');