Commit Graph

120 Commits

Author SHA1 Message Date
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
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
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
dbf27d401e Added ability to export accounts to json 2022-11-02 14:48:15 +03:00
373623b0b4 Removed type_ from sqlmodel.Column, because it isn't needed 2022-11-02 14:42:26 +03:00
afc03a6c1f Removed comment which broke code, when uncommented 2022-11-02 14:42:26 +03:00
ae2b214904 Fixed an error of getting wrong account
I'm now quite shure how it worked before
2022-10-31 21:09:12 +03:00
01ab461d28 Added message of failure to add account 2022-10-31 20:40:53 +03:00
9f1790b58d Changed message for reseting master password 2022-10-30 23:22:01 +03:00
3c5d309b9a Removed mension of missing conformation for deleting all 2022-10-30 23:20:38 +03:00
b7120f2627 Fixed an error of deleting all passwords, instead of 1 with command delete_account 2022-10-30 23:03:26 +03:00
99c24d9917 Added commit statement 2022-10-30 22:57:26 +03:00
2101c302db Added note about ability to copt 2022-10-30 16:53:56 +03:00
ac9d89fb3d made login and password easily copyable 2022-10-30 16:37:24 +03:00
f6b58df6c4 Properly documented help command 2022-10-30 16:30:00 +03:00
69cddd1cbb Remved unnessasary import 2022-10-30 16:28:23 +03:00
88d51785ed Added conformation for deleting all, added cacel command for the case, when there is no active action 2022-10-30 16:24:32 +03:00
731893ad33 Added cancel command 2022-10-30 16:16:04 +03:00
689de06782 Tweaks in handlers to optimize database usage 2022-10-30 16:06:38 +03:00
dec7a9b7c9 Now commands ask for params in separate messages 2022-10-29 22:04:04 +00:00
fae04547c8 added commits to delete funcs 2022-10-29 22:04:04 +00:00
baef759929 merged functions for master password hashing 2022-10-29 19:35:54 +03:00
StNicolay
8128a059df Vadim's preferences 2022-10-14 21:26:20 +03:00
StNicolay
cfd2a24e25 Added help command 2022-10-14 20:16:46 +03:00
StNicolay
b5aebdb101 Added message after account deletion 2022-10-14 20:02:27 +03:00
StNicolay
267e54bb29 Added ability to delete account of a user 2022-10-14 20:01:05 +03:00
StNicolay
b1017082a9 Fixed reset of master password 2022-10-14 19:53:05 +03:00
StNicolay
39e86793a6 Removed print 2022-10-14 19:52:48 +03:00
StNicolay
822061ae49 Removed prints 2022-10-14 19:35:16 +03:00
StNicolay
865c98ad46 Created basic version of the bot 2022-10-14 17:48:54 +03:00
StNicolay
7fe7b23a63 Filled delete.py and created change.py 2022-10-14 17:48:32 +03:00
StNicolay
85129d8b7a Changes to db: fixed error in __init__, looking for more precise errors 2022-10-14 17:12:24 +03:00
StNicolay
29b7125a4d Added comments 2022-10-14 15:41:55 +03:00
StNicolay
3ebe4240bf Changed database scripts 2022-10-14 15:38:03 +03:00
StNicolay
70c98d2062 Changed func name 2022-10-05 18:47:51 +03:00
StNicolay
79ed20bbf7 Added func to hash master pass with known hasg 2022-10-05 18:37:19 +03:00
StNicolay
3cb9c74bac Moved code to main func in src 2022-10-05 15:14:32 +03:00
StNicolay
e744cba7c8 database.prepare now accepts connection 2022-10-05 15:10:10 +03:00
StNicolay
44ae963f69 Added other files to database.__init__ 2022-10-05 15:05:28 +03:00
StNicolay
d61cd11a20 Sorted imports 2022-10-05 15:04:39 +03:00
StNicolay
4753d91ba4 Created delete.py 2022-10-05 15:01:34 +03:00
StNicolay
289532fd95 No longer recreating indexes 2022-10-05 14:56:03 +03:00
StNicolay
91518559b0 Added exception handling 2022-10-05 14:52:23 +03:00
StNicolay
6546fc0401 Completed add_account function 2022-10-05 14:47:34 +03:00
StNicolay
7cfb97199f Completed add_master pass function 2022-10-05 14:44:03 +03:00
StNicolay
449056d2d2 made passwrd lowercase 2022-10-05 14:38:00 +03:00
StNicolay
e92044ec1b Added function headers in database.add 2022-09-29 16:02:11 +03:00
StNicolay
c8410a877c Created get.py 2022-09-29 15:58:56 +03:00
StNicolay
44bab0fb48 Created database/prepare.py 2022-09-26 22:44:48 +03:00
StNicolay
1bde1a1739 Now using env. variables for db info 2022-09-26 21:45:27 +03:00
StNicolay
9d8d9cfdd6 Made generate_keys private 2022-09-26 21:45:10 +03:00
StNicolay
2f4bd2421b Added master_pass and other_accounts to __init__.py 2022-09-26 21:18:58 +03:00
StNicolay
08b0603e23 Sorted imports 2022-09-26 21:18:00 +03:00
StNicolay
b523a7574d Created functions to encrypt and decrypt account info 2022-09-26 21:15:43 +03:00
StNicolay
ba72f9f2d4 Created master_pass encryption function 2022-09-26 20:41:42 +03:00
StNicolay
6cd1016249 Created file structure 2022-09-26 20:34:02 +03:00