ae88fccf13
Updated type hint of the handler in the register_state function
StNicolay2023-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
StNicolay2023-01-03 12:29:08 +03:00
9ec66a3521
Renamed src/database into src/db
StNicolay2023-01-03 11:59:06 +03:00
70e9afe21d
Small reformating in bot.message_handler
StNicolay2023-01-03 11:48:25 +03:00
5d59adb7d2
Renamed encryption/other_accounts into encryption/accounts
StNicolay2023-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
StNicolay2023-01-01 00:18:57 +03:00
74844da4ae
Added backslash to the forbidden chars
StNicolay2022-12-30 13:54:03 +03:00
5bec51beb2
Added keyboard markup to /delete_account
StNicolay2022-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
StNicolay2022-12-29 15:38:38 +03:00
d4c50432d7
Added ability to send message, which can be deleted by pressing a button
StNicolay2022-12-29 15:25:20 +03:00
0026e3321a
Made handlers asynchrounos Switched from TeleBot class to AsyncTeleBot
StNicolay2022-12-28 20:36:25 +03:00
8858aa09a7
Added conformation before deleting an account. No longer raising an exception if message deletion fails
StNicolay2022-12-25 21:32:21 +03:00
e165020111
Added blank lines in encryption.other_accounts for better readability
StNicolay2022-12-25 21:03:08 +03:00
50eb3057d5
Renamed classes.py into decrypted_accounts.py. Removed unnessesary elements from that file
StNicolay2022-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
StNicolay2022-12-25 18:01:12 +03:00
bbc9650357
Changed database.get file. Added fetchall method calls to close session sooner
StNicolay2022-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
StNicolay2022-12-25 17:33:36 +03:00
5991041b35
Added timeout to the deletion of the message in _send_tmp_message
StNicolay2022-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/
StNicolay2022-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
StNicolay2022-12-10 23:46:00 +03:00
9690db982e
Added info about total amount of accounts for get_acccounts command
StNicolay2022-12-06 14:28:29 +03:00
025ea868a6
Addedd ensure_ascii=False to exporting Accounst
StNicolay2022-12-06 14:21:36 +03:00
d82d152fef
Added ordering by name for accounts
StNicolay2022-12-06 14:16:03 +03:00
b0599c1484
Added pool_recycle every hour
StNicolay2022-12-05 20:10:20 +03:00
eab94e1c01
Added flake8 config to dockerignore
StNicolay2022-11-30 20:26:32 +03:00
b42cbb57a4
Renamed cryptogra[hy folder into encryption to not overshadow cryptography module
StNicolay2022-11-30 20:24:46 +03:00
944f23a146
Added new lines in requirements
StNicolay2022-11-26 19:45:29 +03:00
b4c6e17ce2
Decreased size of enc_login and enc_pass to 256 bytes
StNicolay2022-11-25 21:21:18 +03:00
2ea3096fb0
encoding and decoding result of fernet to store data better
StNicolay2022-11-25 21:02:21 +03:00
63de9010de
Switched .venv to venv in .dockerignore
StNicolay2022-11-22 08:08:12 +00:00
e49f2e00eb
Made pip upgrade before copying requirements.txt in Dockerfile
1.1.1
StNicolay2022-11-18 16:38:25 +00:00
fd002e3718
Added command to update pip setuptools and install wheel in Dockerfile
StNicolay2022-11-18 11:34:04 +00:00
d68a7bb6e8
Moved check of generated password into separate function
StNicolay2022-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
StNicolay2022-11-15 15:08:27 +03:00
cc13b35282
Made class Account private in utils.py
StNicolay2022-11-14 16:40:16 +03:00
3802943225
Changed telebot.types.Message to Message in handlers for old functions
StNicolay2022-11-14 16:39:20 +03:00
309fb2108b
Removed unnessesary import from src.__init__
StNicolay2022-11-14 16:38:16 +03:00
9d5c52bebe
optimized password generation function
StNicolay2022-11-14 16:54:31 +03:00
a61deca6fa
Removed unnecessary comments and type hints in src.__init__
StNicolay2022-11-13 19:49:21 +03:00
18abdecb74
Increased time untill deletion for /gen_password to 15 secs
1.1
StNicolay2022-11-13 18:53:11 +03:00
559ee8f6d8
Renamed _memory_use in cryptography into MEMORY_USAGE
StNicolay2022-11-07 21:02:13 +03:00
a1bed9014d
Changed the way the master password hashing works
1.0
StNicolay2022-11-04 00:34:01 +03:00
66ab13b45d
Changed handlers.get_accounts to use a guard clause, added comment to clarify, why we are putting account in backticks
StNicolay2022-11-05 00:25:23 +03:00
da42d7ad1d
Changed comments in cryptograpy.other_accounts to be more precise
StNicolay2022-11-05 00:22:37 +03:00
570f15001e
switched mariadb connector to pymysql
StNicolay2022-11-04 02:15:16 +03:00
b4bf9fbf41
Changed mariadb.Connection to Engine in __init__ of bot
StNicolay2022-11-04 02:16:47 +03:00
b56ebd0b61
Added account name and account credential checking
StNicolay2022-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
StNicolay2022-11-02 23:02:20 +03:00
4122e15308
Added data directory to .dockerignore
StNicolay2022-11-02 18:29:54 +00:00
37a81ed22d
Changed change_master_pass to be more readable
StNicolay2022-11-02 18:34:02 +03:00
fb850e3737
Added ability to import accounts
StNicolay2022-11-01 10:32:42 +03:00
dbf27d401e
Added ability to export accounts to json
StNicolay2022-11-01 09:46:09 +03:00
373623b0b4
Removed type_ from sqlmodel.Column, because it isn't needed
StNicolay2022-11-02 14:41:56 +03:00
afc03a6c1f
Removed comment which broke code, when uncommented
StNicolay2022-11-02 14:41:07 +03:00
4ee7f0a609
Added installation of g++ to Dockerfile
StNicolay2022-11-01 09:26:13 +00:00
ae2b214904
Fixed an error of getting wrong account I'm now quite shure how it worked before
StNicolay2022-10-31 21:09:12 +03:00
01ab461d28
Added message of failure to add account
StNicolay2022-10-31 20:40:53 +03:00
9c095779a5
Fixed a typo in README and changed one of the phrase to be more correct
Beta
StNicolay2022-10-30 20:39:00 +00:00
9f1790b58d
Changed message for reseting master password
StNicolay2022-10-30 23:22:01 +03:00
3c5d309b9a
Removed mension of missing conformation for deleting all
StNicolay2022-10-30 23:20:38 +03:00
3e570dbaff
Changed order of operations in the Dockerfile
StNicolay2022-10-30 23:08:24 +03:00
b7120f2627
Fixed an error of deleting all passwords, instead of 1 with command delete_account
StNicolay2022-10-30 23:03:26 +03:00