normalize strings before calculation hashes, #4435

pull/13/head
zadam 2023-11-27 23:23:55 +07:00
parent 93dcce2217
commit a6036859b8
1 changed files with 2 additions and 0 deletions

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