a9417058ee
Updated tables, changed primary keys
...
Removed id fields from tables
Set user_id to be primary key of master_passwords
Set user_id and name to be primary keys of accounts
2022-12-10 23:46:00 +03:00
9690db982e
Added info about total amount of accounts for get_acccounts command
2022-12-06 14:28:29 +03:00
025ea868a6
Addedd ensure_ascii=False to exporting Accounst
2022-12-06 14:21:36 +03:00
d82d152fef
Added ordering by name for accounts
2022-12-06 14:16:03 +03:00
b0599c1484
Added pool_recycle every hour
2022-12-05 20:10:20 +03:00
eab94e1c01
Added flake8 config to dockerignore
2022-11-30 20:26:32 +03:00
b42cbb57a4
Renamed cryptogra[hy folder into encryption to not overshadow cryptography module
2022-11-30 20:24:46 +03:00
138ec55ae5
Added flake8 to requirements-dev.txt, added flake8 config file
2022-11-30 20:06:04 +03:00
6cd8091fde
More code cleanup with a few bug fixes
2022-11-30 19:41:57 +03:00
0d3965d5d2
Renamed columns in tables
...
MasterPass passwd -> password_hash
Account enc_pass -> enc_password
2022-11-30 17:05:04 +03:00
04bb306751
Added _base_handler call to the cancel function in handlers
2022-11-30 16:53:59 +03:00
2a5b594f3f
Renamed gen_password.py into generate_password.py, fixed gen_password command
2022-11-30 16:50:42 +03:00
2d2ed017f1
Removed utils.py, added decrypt_multiple function in other_accounts.py
2022-11-30 16:43:02 +03:00
e9eaa085a2
Moved utils into src directory, moved most of the functions from it into separate files
2022-11-30 16:28:37 +03:00
0463388829
Massive code cleanup
2022-11-30 16:05:33 +03:00
944f23a146
Added new lines in requirements
2022-11-26 19:45:29 +03:00
b4c6e17ce2
Decreased size of enc_login and enc_pass to 256 bytes
2022-11-25 21:21:18 +03:00
2ea3096fb0
encoding and decoding result of fernet to store data better
2022-11-25 21:02:21 +03:00
63de9010de
Switched .venv to venv in .dockerignore
2022-11-22 08:08:12 +00:00
e49f2e00eb
Made pip upgrade before copying requirements.txt in Dockerfile
2022-11-18 16:38:25 +00:00
fd002e3718
Added command to update pip setuptools and install wheel in Dockerfile
2022-11-18 11:34:04 +00:00
d68a7bb6e8
Moved check of generated password into separate function
2022-11-15 15:39:38 +03:00
d5f3708c50
Refactored utils.py
...
Created constants FORBIDDEN_CHARS, PUNCTUATION, PASSWORD_CHARS
Removed pipe from forbidden chars
Moved Message type alias to the top of the file
Optimized _base_check and made its parameter positional only
Changed gen_password to use said constants
2022-11-15 15:17:36 +03:00
cc13b35282
Made class Account private in utils.py
2022-11-14 16:58:34 +03:00
3802943225
Changed telebot.types.Message to Message in handlers for old functions
2022-11-14 16:58:34 +03:00
309fb2108b
Removed unnessesary import from src.__init__
2022-11-14 16:58:34 +03:00
9d5c52bebe
optimized password generation function
2022-11-14 16:58:26 +03:00
a61deca6fa
Removed unnecessary comments and type hints in src.__init__
2022-11-13 19:49:21 +03:00
18abdecb74
Increased time untill deletion for /gen_password to 15 secs
2022-11-13 18:53:11 +03:00
46a1fe59b2
Documented /gen_password command
2022-11-13 18:51:23 +03:00
9ee51dc19f
Added /gen_password command
2022-11-13 18:49:57 +03:00
2c07b3bed2
Added function for password generation is utils.py
2022-11-13 18:49:14 +03:00
b8113dc47b
Sorted imports in utils.py
2022-11-13 18:16:03 +03:00
21bd01c3ed
Changed and added comments in the database files
2022-11-10 18:45:10 +03:00
c2280e8bc2
Changed functions for encryption and decryption of accounts to use str of master_pass instead of bytes
2022-11-09 19:02:58 +03:00
f7f954ecd3
Sorted imports
2022-11-09 18:52:59 +03:00
559ee8f6d8
Renamed _memory_use in cryptography into MEMORY_USAGE
2022-11-07 21:02:13 +03:00
a1bed9014d
Changed the way the master password hashing works
...
Switched from Bcrypt to Scrypt for master password hashing
Changed models to use new sizes for hashes and salts, doubled the size of enc_login and enc_passwd for accounts
Created new function to check master password validity
Increased salt sizes for accounts and master passwords
Removed bcrypt from requirements
2022-11-07 16:30:45 +03:00
66ab13b45d
Changed handlers.get_accounts to use a guard clause, added comment to clarify, why we are putting account in backticks
2022-11-07 16:29:37 +03:00
da42d7ad1d
Changed comments in cryptograpy.other_accounts to be more precise
2022-11-07 16:29:31 +03:00
570f15001e
switched mariadb connector to pymysql
2022-11-04 02:17:17 +03:00
b4bf9fbf41
Changed mariadb.Connection to Engine in __init__ of bot
2022-11-04 02:16:47 +03:00
042ca9312e
Cleaned up code in handlers
...
Renamed variables in _set_master_pass2 for consistency
Added a few missing returns in guard clauses
Added file size limit for importing account to 100 MB
2022-11-04 01:20:25 +03:00
b10b1fe2b3
changed to the newer version of mariadb
2022-11-03 16:27:52 +00:00
03646b6156
Added checks to /import
2022-11-03 10:49:00 +03:00
b56ebd0b61
Added account name and account credential checking
2022-11-02 23:11:29 +03:00
adf9865fbe
Added ability to copy account name from /get_accounts
...
That also fixed an issue of having wrong behaviour, if using any special chars in account name
2022-11-02 23:02:20 +03:00
4122e15308
Added data directory to .dockerignore
2022-11-02 18:29:54 +00:00
37a81ed22d
Changed change_master_pass to be more readable
2022-11-02 18:34:02 +03:00
fb850e3737
Added ability to import accounts
2022-11-02 14:48:15 +03:00