A very simple password generation API.
- Download latest binary from the releases page or build binary:
$ chmod +x .build.bash $ ./build.bash [VERSION]
- Executing the binary will start a REST API server on port
3334
.
URL : /passwords
Method : GET
Query Params :
numCandidates
: number of password candidates (int
, optional, default=4)length
of password candidates (int
, optional, default=8)numDigits
the number of digits (int
, optional, default=0)numSymbols
the number of symbols (int
, optional, default=0)replaceVowels
replace (german) vowels of password candidates randomly (bool
, optional, default=false)
Code : 200 OK
Content :
[
"candidates": [
"password_candidate_1",
"password_candidate_1",
...
"password_candidate_n"
]
]
$ curl -X GET "http://localhost:3334/passwords?length=32&numDigits=4&numSymbols=4&replaceVowels=true"