obfuscate client password

This commit is contained in:
Quan HL
2023-06-16 07:08:33 +07:00
parent 1439c1b6a4
commit 43b784edd4
3 changed files with 6 additions and 7 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) {