6 lines
149 B
JavaScript
6 lines
149 B
JavaScript
import { createHash } from 'node:crypto'
|
|
|
|
export default function hash(string) {
|
|
return createHash('md5').update(string).digest().toString('hex')
|
|
}
|