This is an HTTP API written in Python using the Bottle framework for generating XKCD style passwords.
The latest version of the API is hosted here.
To try out the generator, you can clone this repository and run python main.py
. This will run Bottle's built-in development server and you can access the API from http://localhost:8080/GeneratePassword
For production deployment, refer to the Bottle documentation page on deployment.
Call /GeneratePassword/{Mode}
where {Mode}
can be either Capitalize
, LowerCase
or UpperCase
.
By default, four word passwords with spaces as separators will be generated.
You can specify the number of words and the separator in the query string as follows:
/GeneratePassword/{Mode}?words=7&separator=65
Note that you need to pass in the ASCII value of the separator character.