1
This commit is contained in:
parent
90bc1d4fe9
commit
c6aca25455
2
utils.js
2
utils.js
@ -207,7 +207,7 @@ function md5Str(data) {
|
|||||||
|
|
||||||
function sha1Str(data) {
|
function sha1Str(data) {
|
||||||
const hash = crypto.createHash('sha1');
|
const hash = crypto.createHash('sha1');
|
||||||
return hash.update(data).digest('hex');
|
return hash.update(data).digest('hex').toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
function getVal(obj, key, defVal = null) {
|
function getVal(obj, key, defVal = null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user