StNicolay
c051c14f1f
Switched to the ChaCha20Poly1305 encryption algorithm for better security
2023-01-10 20:00:58 +03:00
StNicolay
3686195396
Added a message about exceptions for a user
2023-01-06 17:32:44 +03:00
StNicolay
d79b57b1f0
Added return statement after sending a message about that there is no active message
2023-01-05 14:52:45 +03:00
StNicolay
157c2c4aa2
_import3 no longer blocks event loop during decryption
...
Now running encrytion of accounts in ProcessPoolExecutor
2023-01-05 14:11:29 +03:00
StNicolay
f4a5f51b23
Made more verbose exception handler for the bot for easier debugging
2023-01-05 13:47:31 +03:00
StNicolay
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
StNicolay
9f64305050
Moved sorting back to the get_accounts
2023-01-05 13:03:44 +03:00
StNicolay
4954f39a91
Added indentation into exported json files
2023-01-05 13:02:50 +03:00
StNicolay
3edeb86b6c
Disabled autoincrement in master_passwords table
2023-01-05 13:01:28 +03:00
StNicolay
c7675c231f
Fixed sending a final message in /import
1.3.1
2023-01-03 21:07:37 +03:00
StNicolay
ae88fccf13
Updated type hint of the handler in the register_state function
2023-01-03 12:34:54 +03:00
StNicolay
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
StNicolay
fdbed91512
Now account name is copyable
1.3
2023-01-03 12:12:40 +03:00
StNicolay
f9d163361a
Renamed functions in db.get
...
get_accounts -> get_account_names
get_all_accounts -> get_accounts
2023-01-03 12:08:06 +03:00
StNicolay
9ec66a3521
Renamed src/database into src/db
2023-01-03 11:59:06 +03:00
StNicolay
70e9afe21d
Small reformating in bot.message_handler
2023-01-03 11:48:25 +03:00
StNicolay
5d59adb7d2
Renamed encryption/other_accounts into encryption/accounts
2023-01-01 00:21:53 +03:00
StNicolay
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
StNicolay
74844da4ae
Added backslash to the forbidden chars
2022-12-30 13:54:03 +03:00
StNicolay
77be64ed4b
sorted imports
2022-12-29 18:22:37 +03:00
StNicolay
5bec51beb2
Added keyboard markup to /delete_account
2022-12-29 15:42:27 +03:00
StNicolay
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
StNicolay
d4c50432d7
Added ability to send message, which can be deleted by pressing a button
2022-12-29 15:25:20 +03:00
StNicolay
0026e3321a
Made handlers asynchrounos
...
Switched from TeleBot class to AsyncTeleBot
2022-12-29 13:58:53 +03:00
StNicolay
8858aa09a7
Added conformation before deleting an account. No longer raising an exception if message deletion fails
2022-12-25 21:34:09 +03:00
StNicolay
e165020111
Added blank lines in encryption.other_accounts for better readability
2022-12-25 21:04:45 +03:00
StNicolay
50eb3057d5
Renamed classes.py into decrypted_accounts.py. Removed unnessesary elements from that file
2022-12-25 21:01:18 +03:00
StNicolay
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
StNicolay
bbc9650357
Changed database.get file. Added fetchall method calls to close session sooner
2022-12-25 17:59:26 +03:00
StNicolay
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
StNicolay
5991041b35
Added timeout to the deletion of the message in _send_tmp_message
2022-12-16 06:25:00 +00:00
StNicolay
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
StNicolay
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
StNicolay
9690db982e
Added info about total amount of accounts for get_acccounts command
2022-12-06 14:28:29 +03:00
StNicolay
025ea868a6
Addedd ensure_ascii=False to exporting Accounst
2022-12-06 14:21:36 +03:00
StNicolay
d82d152fef
Added ordering by name for accounts
2022-12-06 14:16:03 +03:00
StNicolay
b0599c1484
Added pool_recycle every hour
2022-12-05 20:10:20 +03:00
StNicolay
eab94e1c01
Added flake8 config to dockerignore
2022-11-30 20:26:32 +03:00
StNicolay
b42cbb57a4
Renamed cryptogra[hy folder into encryption to not overshadow cryptography module
2022-11-30 20:24:46 +03:00
StNicolay
138ec55ae5
Added flake8 to requirements-dev.txt, added flake8 config file
2022-11-30 20:06:04 +03:00
StNicolay
6cd8091fde
More code cleanup with a few bug fixes
2022-11-30 19:41:57 +03:00
StNicolay
0d3965d5d2
Renamed columns in tables
...
MasterPass passwd -> password_hash
Account enc_pass -> enc_password
1.2
2022-11-30 17:05:04 +03:00
StNicolay
04bb306751
Added _base_handler call to the cancel function in handlers
2022-11-30 16:53:59 +03:00
StNicolay
2a5b594f3f
Renamed gen_password.py into generate_password.py, fixed gen_password command
2022-11-30 16:50:42 +03:00
StNicolay
2d2ed017f1
Removed utils.py, added decrypt_multiple function in other_accounts.py
2022-11-30 16:43:02 +03:00
StNicolay
e9eaa085a2
Moved utils into src directory, moved most of the functions from it into separate files
2022-11-30 16:28:37 +03:00
StNicolay
0463388829
Massive code cleanup
2022-11-30 16:05:33 +03:00
StNicolay
944f23a146
Added new lines in requirements
2022-11-26 19:45:29 +03:00
StNicolay
b4c6e17ce2
Decreased size of enc_login and enc_pass to 256 bytes
2022-11-25 21:21:18 +03:00
StNicolay
2ea3096fb0
encoding and decoding result of fernet to store data better
2022-11-25 21:02:21 +03:00