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.sh
Because I don't know how to properly use pip
and conda
, you may install these packages:
pip install fastapi uvicorn[standart] PyJWT pymongo pythoncryptodome bcrypt
You should run a local mongodb
server with zvms.users
through the declaration file in zvms4-frontend
uvicorn server:app --reload
You can run request.py
to test it.
python request.py
I wrote a encrypt demo in cert.py
Under the MIT License
7086cmd.