aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-23 15:38:38 -0800
committerclarkzjw <[email protected]>2023-02-23 15:38:38 -0800
commit20b8220a12fc92f95ecae267ce4eb5a80584f564 (patch)
tree1090256b48a76aae7afe2e10b860a02b43790807 /dbstore/peewee_store.py
parent31a2d111d1c0ceb2ebfd5bb5daf4ee0ab2de4eb4 (diff)
parent4cee8500a51aff6d0a445a3a6259cafed92d4845 (diff)
downloadswarm2fediverse-20b8220a12fc92f95ecae267ce4eb5a80584f564.tar.gz
Merge branch 'feature/encryption'
- bot: encrypt access_key with cryptography.fernet library
Diffstat (limited to 'dbstore/peewee_store.py')
-rw-r--r--dbstore/peewee_store.py6
1 files changed, 2 insertions, 4 deletions
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):
16 16
17class User(BaseModel): 17class User(BaseModel):
18 telegram_user_id = CharField(unique=True, primary_key=True) 18 telegram_user_id = CharField(unique=True, primary_key=True)
19 # TODO: 19 access_key = CharField(max_length=256)
20 # add AES encryption to access_key 20 home_instance = CharField(max_length=256)
21 access_key = CharField(max_length=64)
22 home_instance = CharField(max_length=128)
23 state = CharField(max_length=128) 21 state = CharField(max_length=128)
24 client_id = CharField(max_length=128) 22 client_id = CharField(max_length=128)
25 client_secret = CharField(max_length=128) 23 client_secret = CharField(max_length=128)
Powered by cgit v1.2.3 (git 2.41.0)