diff --git a/app.py b/app.py index d7cbace..b72576e 100644 --- a/app.py +++ b/app.py @@ -14,10 +14,12 @@ ALG_PREFIX = { 'sha256': '$5$', } +# The main route @app.route('/') def index(): return render_template('index.html') +# This is what generates salt @app.route('/gensalt') def gensalt(): length = max(MIN_SALT_LEN, min(MAX_SALT_LEN, int(request.args.get('length', MIN_SALT_LEN))))