Commit Graph

156 Commits

Author SHA1 Message Date
aa36f2eb82 Renamed fucntion for verifying master password 2023-01-11 18:43:00 +03:00
931e93fbde Increased amount of iterations of key derivation function in accounts.py 2023-01-11 18:42:58 +03:00
972c5577f4 Added validation to the database models 2023-01-10 21:00:03 +03:00
671286dc39 Removed backend because it wasn't used in encryption.accounts 2023-01-10 20:28:34 +03:00
5dbf93013a Added requesting a master password for deleting accounts, deleting all, reseting master password 2023-01-10 20:10:48 +03:00
c051c14f1f Switched to the ChaCha20Poly1305 encryption algorithm for better security 2023-01-10 20:00:58 +03:00
3686195396 Added a message about exceptions for a user 2023-01-06 17:32:44 +03:00
d79b57b1f0 Added return statement after sending a message about that there is no active message 2023-01-05 14:52:45 +03:00
157c2c4aa2 _import3 no longer blocks event loop during decryption
Now running encrytion of accounts in ProcessPoolExecutor
2023-01-05 14:11:29 +03:00
f4a5f51b23 Made more verbose exception handler for the bot for easier debugging 2023-01-05 13:47:31 +03:00
6bc8eb1413 db.add changes
Added _add_model helper function to reduce code duplication
Added add_accounts for future use
2023-01-05 13:19:01 +03:00
9f64305050 Moved sorting back to the get_accounts 2023-01-05 13:03:44 +03:00
4954f39a91 Added indentation into exported json files 2023-01-05 13:02:50 +03:00
3edeb86b6c Disabled autoincrement in master_passwords table 2023-01-05 13:01:28 +03:00
c7675c231f Fixed sending a final message in /import 2023-01-03 21:07:37 +03:00
ae88fccf13 Updated type hint of the handler in the register_state function 2023-01-03 12:34:54 +03:00
e29eefe40b Changes in helper_functions.delete_message
Removed checking if sleep_time is 0
Moved sleeping outside of try block
2023-01-03 12:29:08 +03:00
fdbed91512 Now account name is copyable 2023-01-03 12:12:40 +03:00
f9d163361a Renamed functions in db.get
get_accounts -> get_account_names
get_all_accounts -> get_accounts
2023-01-03 12:08:06 +03:00
9ec66a3521 Renamed src/database into src/db 2023-01-03 11:59:06 +03:00
70e9afe21d Small reformating in bot.message_handler 2023-01-03 11:48:25 +03:00
5d59adb7d2 Renamed encryption/other_accounts into encryption/accounts 2023-01-01 00:21:53 +03:00
281c4a262b _export2 no longer blocks event loop during decryption
Removed sorting in get_all_accounts
Removed decrypt_multiple function because it is no longer used
Now running decrytion of accounts in ProcessPoolExecutor
2023-01-01 00:18:57 +03:00
74844da4ae Added backslash to the forbidden chars 2022-12-30 13:54:03 +03:00
77be64ed4b sorted imports 2022-12-29 18:22:37 +03:00
5bec51beb2 Added keyboard markup to /delete_account 2022-12-29 15:42:27 +03:00
d5d87a8f3b Quality of life changes
Changed default action of /cancel to be handled at message_handler
Added keyboard markup to get_account for easier account selection
2022-12-29 15:38:38 +03:00
d4c50432d7 Added ability to send message, which can be deleted by pressing a button 2022-12-29 15:25:20 +03:00
0026e3321a Made handlers asynchrounos
Switched from TeleBot class to AsyncTeleBot
2022-12-29 13:58:53 +03:00
8858aa09a7 Added conformation before deleting an account. No longer raising an exception if message deletion fails 2022-12-25 21:34:09 +03:00
e165020111 Added blank lines in encryption.other_accounts for better readability 2022-12-25 21:04:45 +03:00
50eb3057d5 Renamed classes.py into decrypted_accounts.py. Removed unnessesary elements from that file 2022-12-25 21:01:18 +03:00
3f744723a9 Major refactor of the code
A lot of function are now using classes instead of parameters or tuples
isort was added to the dev requirements
Comments were adjusted
2022-12-25 20:12:19 +03:00
bbc9650357 Changed database.get file. Added fetchall method calls to close session sooner 2022-12-25 17:59:26 +03:00
f299173e56 Changes to database.get_accounts
Function is only fetching account names from db and not whole accounts now
Made sorting in that function optional
2022-12-25 17:35:37 +03:00
5991041b35 Added timeout to the deletion of the message in _send_tmp_message 2022-12-16 06:25:00 +00:00
c2eca49933 Switched to building an image localy instead of using one from docker hub
Added database folder
Created Dockerfile and config for mariadb image
Moved data folder tp database/data/
2022-12-15 15:13:39 +00:00
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