normalize strings before calculation hashes, #4435

This commit is contained in:
zadam 2023-11-27 23:23:55 +01:00
parent 93dcce2217
commit a6036859b8

View file

@ -63,6 +63,8 @@ function isElectron() {
} }
function hash(text) { function hash(text) {
text = text.normalize();
return crypto.createHash('sha1').update(text).digest('base64'); return crypto.createHash('sha1').update(text).digest('base64');
} }