Skip to content

RiseofRice/password-Creator

Repository files navigation

~~~Flask Password Generator~~~

forthebadge forthebadge


Installation

Dependencies

You'll need Python 3.6 and Flask installed
Flask


just install the Requirements.txt with the command
pip install -r requirements.txt maybe with sudo in unix systems
and run it with python app.py


you can use the dockerfile too:

  • docker build -t FlaskPasswords:latest . in the root folder of this script

After that:

  • docker run --name Flask-App -d -p 5000:8080 FlaskPasswords

Or use docker-compose:

  • docker-compose up -d --build

Maybe the rendered html needs to be adapted to your port configuration especially the redirect action in the form


Usage

after the installation it's available on 0.0.0.0:5000 which means 127.0.0.1:5000 on Docker
and 0.0.0.0:8080 on native Python


On the website are just 2 Input Boxes.

  • The First one are the quantity of Passwords you want to generate
  • The Second one are the length of your generated Passwords

Note: The complexity is a standard and isn't adjustable


You can also send a GET Request to the Webapp

for example 0.0.0.0:8000/new?q=8&length=25


Passwordchecker

localhost:5000/checkmy/<password>
You may need a api to use the built in password checker. You can get the key here NIST. this key should stored in a file called apikey.json with this format: {"api_key": "paste key here!"}. Or you add a enviroment variable to your docker with: docker run -e API_KEY=Apikeyhere


Acknowledgement's

Special Thanks to NIST for making availeble the bad password api that i use in this program


License 📜

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published