From 4cee8500a51aff6d0a445a3a6259cafed92d4845 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 23 Feb 2023 15:37:48 -0800 Subject: bot: encrypt access_key with cryptography.fernet library --- dbstore/peewee_store.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dbstore') diff --git a/dbstore/peewee_store.py b/dbstore/peewee_store.py index d124de2..445816e 100644 --- a/dbstore/peewee_store.py +++ b/dbstore/peewee_store.py @@ -16,10 +16,8 @@ class BaseModel(Model): class User(BaseModel): telegram_user_id = CharField(unique=True, primary_key=True) - # TODO: - # add AES encryption to access_key - access_key = CharField(max_length=64) - home_instance = CharField(max_length=128) + access_key = CharField(max_length=256) + home_instance = CharField(max_length=256) state = CharField(max_length=128) client_id = CharField(max_length=128) client_secret = CharField(max_length=128) -- cgit v1.2.3