The Example of RSA + Bcrypt + JWT Login
You can generate RSA key pair by using openssl command. By the way, I have already written a generator script for you.
./generate_key.shBecause I don't know how to properly use pip and conda, you may install these packages:
pip install fastapi uvicorn[standart] PyJWT pymongo pythoncryptodome bcryptYou should run a local mongodb server with zvms.users through the declaration file in zvms4-frontend
uvicorn server:app --reloadYou can run request.py to test it.
python request.pyI wrote a encrypt demo in cert.py
Under the MIT License
7086cmd.