og/lib/hash.js
2023-08-03 07:48:52 -05:00

6 lines
149 B
JavaScript

import { createHash } from 'node:crypto'
export default function hash(string) {
return createHash('md5').update(string).digest().toString('hex')
}