No description
Find a file
Max Skybin df11ba35b1
Update README.md
Remove circleci build status
2024-12-03 23:11:40 -05:00
docs Move to nimcrypto. Introduce Windows support. 2021-02-20 15:36:49 -05:00
src Move to nimcrypto. Introduce Windows support. 2021-02-20 15:36:49 -05:00
tests Move to nimcrypto. Introduce Windows support. 2021-02-20 15:36:49 -05:00
.gitignore Move to nimcrypto. Introduce Windows support. 2021-02-20 15:36:49 -05:00
.travis.yml Fixed .travis.yml location 2019-09-29 00:32:25 -04:00
LICENSE Initial commit 2019-09-28 22:29:20 -04:00
passgen.nimble Move to nimcrypto. Introduce Windows support. 2021-02-20 15:36:49 -05:00
README.md Update README.md 2024-12-03 23:11:40 -05:00

nim-passgen

Password generation library in Nim

Installation

nimble install passgen

Example

# 24 character-long password,
# inluding letters, numbers and special characters
let pg = newPassGen(passlen = 24)
echo "Long: ", pg.getPassword()

# 8 character-long password,
# inluding letters and numbers only (no special characters)
pg = newPassGen(passlen = 8, flags={fUpper, fLower, fDigits})
echo "Short: ", pg.getPassword()

# 4 character-long numerical PIN
pg = newPassGen(passlen = 4, flags={fDigits})
echo "PIN: ", pg.getPassword()