13 lines
181 B
JavaScript
13 lines
181 B
JavaScript
const crypto = require('crypto')
|
|
|
|
function md5(stringValue) {
|
|
return crypto
|
|
.createHash('md5')
|
|
.update(stringValue || '')
|
|
.digest('hex')
|
|
}
|
|
|
|
module.exports = {
|
|
md5
|
|
}
|