IbraheemAlquraishy's picture
backend
98f175c
raw
history blame
No virus
360 Bytes
from flask import Flask,request
from pass_str import *
app=Flask(__name__)
m,td=load()
@app.post("/check")
def check():
request.get_json()
i=request.json.get('password')
out=test(i,m,td)
j=str(out)
j=j.replace("['","")
j=j.replace("']","")
return '{"level":"'+j+'"}'
if __name__=="__main__":
app.run(debug=True)