encrypt client password and fix upgrade db script (#188)

* encrypt client password and fix upgrade db script

* encrypt client password and fix upgrade db script

* obfuscate client password
This commit is contained in:
Hoan Luu Huu
2023-06-16 07:46:22 +07:00
committed by GitHub
parent 0b33ef0c2c
commit a0797a3a4c
6 changed files with 56 additions and 51 deletions
+1 -2
View File
@@ -23,8 +23,7 @@ const decrypt = (data) => {
return decrpyted.toString();
};
const obscureKey = (key) => {
const key_spoiler_length = 6;
const obscureKey = (key, key_spoiler_length = 6) => {
const key_spoiler_char = 'X';
if (!key || key.length <= key_spoiler_length) {