@app.route("/generate_password", methods=["POST"]) def generate_password(): password_length = request.json["password_length"] generated_password = generate_password_hash(str(password_length)) return jsonify({"password": generated_password})
function App() { const [passwordLength, setPasswordLength] = useState(12); const [generatedPassword, setGeneratedPassword] = useState(""); const [accountName, setAccountName] = useState(""); const [password, setPassword] = useState(""); const [masterPassword, setMasterPassword] = useState(""); scoreland passwords
# Generate a secret key for encryption secret_key = Fernet.generate_key() cipher_suite = Fernet(secret_key) setPasswordLength] = useState(12)