mirror of
https://github.com/rjNemo/pass-gen
synced 2026-06-12 13:26:42 +00:00
refactor: change scope
This commit is contained in:
parent
69f1a801de
commit
1c2da99c1a
2 changed files with 1 additions and 6 deletions
|
|
@ -6,7 +6,5 @@
|
||||||
- [x] Minimal length
|
- [x] Minimal length
|
||||||
- [x] Include symbols
|
- [x] Include symbols
|
||||||
- [x] Include numbers
|
- [x] Include numbers
|
||||||
- [ ] Include lowercase characters
|
|
||||||
- [ ] Include uppercase characters
|
|
||||||
- [ ] As a user I want the generated password to be copied to the clipboard
|
- [ ] As a user I want the generated password to be copied to the clipboard
|
||||||
- [ ] As a user I want the generated password to be saved to a file
|
- [ ] As a user I want the generated password to be saved to a file
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,7 @@ def _new_random_generator(seed: int) -> RandomSampler:
|
||||||
|
|
||||||
|
|
||||||
def _build_characters(symbols: bool, numbers: bool) -> str:
|
def _build_characters(symbols: bool, numbers: bool) -> str:
|
||||||
lowercase = string.ascii_lowercase
|
characters = string.ascii_letters
|
||||||
uppercase = string.ascii_uppercase
|
|
||||||
|
|
||||||
characters = lowercase + uppercase
|
|
||||||
|
|
||||||
if symbols:
|
if symbols:
|
||||||
characters += string.punctuation
|
characters += string.punctuation
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue