Closed cr0hn closed 4 years ago
Added support of Fernet encryption of the Payload
Add new authentication class that implements this feature
Encryption by using Fernet. The rest of the features of project are unmodified and runs oks
from sanic import Sanic from sanic_jwt import AuthenticationEncrypted, Initialize app = Sanic() app.config.ENCRYPT_PASSWORD = "ASDFAsdfkjalsdfjlkasdfjlkasdjflksaKSKSKS" app.config.ENCRYPT_SALT = "ASDFAsdfkjalsdfjlkasdfjlkasdjflksa" # This is optional Initialize(app, authentication_class= AuthenticationEncrypted)
Goal
Added support of Fernet encryption of the Payload
Approach
Add new authentication class that implements this feature
New Features/Changes
Encryption by using Fernet. The rest of the features of project are unmodified and runs oks
Example
Open Questions and TODOs