Merge branch 'main' of https://git.thenight.club/csxkdv/TNC-Pass-Salt-Gen
This commit is contained in:
2
app.py
2
app.py
@@ -14,10 +14,12 @@ ALG_PREFIX = {
|
|||||||
'sha256': '$5$',
|
'sha256': '$5$',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# The main route
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
||||||
|
# This is what generates salt
|
||||||
@app.route('/gensalt')
|
@app.route('/gensalt')
|
||||||
def gensalt():
|
def gensalt():
|
||||||
length = max(MIN_SALT_LEN, min(MAX_SALT_LEN, int(request.args.get('length', MIN_SALT_LEN))))
|
length = max(MIN_SALT_LEN, min(MAX_SALT_LEN, int(request.args.get('length', MIN_SALT_LEN))))
|
||||||
|
|||||||
Reference in New Issue
Block a user