perf: 随机密码生成规则添加可排除字符选项

This commit is contained in:
feng
2023-11-28 14:46:51 +08:00
parent 6d611bbbbd
commit 370ef11486
3 changed files with 15 additions and 2 deletions

View File

@@ -30,7 +30,8 @@ class SecretGenerator:
'lower': rules['lowercase'],
'upper': rules['uppercase'],
'digit': rules['digit'],
'special_char': rules['symbol']
'special_char': rules['symbol'],
'exclude_chars': rules['exclude_symbols']
}
return random_string(**rules)