Skip to content

Commit

Permalink
i fixed lenght of password
Browse files Browse the repository at this point in the history
  • Loading branch information
IRQ33 committed Aug 4, 2023
1 parent 3a5d13b commit d1ea14c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions lib/services/CharacterToPassword.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ class CharactersToPassword {
'k',
'l',
'm',
'n'
'o',
'n',
'o',
'p',
'r',
's'
't'
'w'
'y'
'x'
'z'
'q'
's',
't',
'w',
'y',
'x',
'z',
'q'
];
}
4 changes: 3 additions & 1 deletion lib/services/GeneratePassword.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ class GeneratePassword {
var _random = Random();
_password = '';

for (int i = 0; i <= size; i++) {
for (int i = 1; i <= size; i++) {
_password += characterslist.characters
.elementAt(_random.nextInt(characterslist.characters.length));

print(i.toString() + ". " + _password);
}
}

Expand Down

0 comments on commit d1ea14c

Please sign in to comment.