Skip to content

Commit

Permalink
add note in case of custom password policy (#19)
Browse files Browse the repository at this point in the history
If the use case for generating a password involves a custom password policy that requires both upper and lower case, this generator isn't guaranteed to satisfy that requirement.

Since there's no simple way to ensure that, beyond adding extra complexity to the API, this note should be enough to inform users of the possibility they may need to perform additional checks on any generated passwords.
  • Loading branch information
lpmi-13 authored Sep 9, 2021
1 parent eb87ad8 commit f3bd953
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Q795Im1VR5h363s48oZGaLDa
wpvbxlsc
```

> Since these are completely randomized, it's possible that they may generate passwords that don't comply with some custom password policies, such as ones that require both upper case AND lower case letters. If your particular use case needs a mix of casing, then you can either increase the number of characters in the password or check the output and regenerate if it fails a particular constraint, such as requiring both upper and lower case.
## Installation

```sh
Expand Down

0 comments on commit f3bd953

Please sign in to comment.