from flask import Flask,request | |
from flask_cors import CORS | |
from pass_str import * | |
app=Flask(__name__) | |
CORS(app) | |
m,td=load() | |
def check(): | |
request.get_json() | |
i=request.json.get('password') | |
out=test(i,m,td) | |
j=str(out) | |
j=j.replace("['","") | |
j=j.replace("']","") | |
if j=="meduim": | |
j="medium" | |
return '{"level":"'+j+'"}' | |
if __name__=="__main__": | |
app.run(debug=True) |