How to use it in your main code? It's so easy ! Just like example.py. All you need : conn,cursor = check_encrype('Any_string_you_define')
- fix bugs, please update if you cloned this project before 7/10.
Please follow these processes below when you first implememt:
- Download folder AES256 to your project folder.
- Please install : pycryptodome, and I suggest u using version-3.9.7
- Maintain Control.txt, and define path for key and encrypted connection information.
- Run generate_key.py, to get a new key.
- conn,cursor = check_encrype('Any_string_you_define') -> in the code which you wanna connect DB.
- This project focus on protecting server name,user id,password and db name by using AES256 encrype DB information.
- You can define a connect string like TEST, and this program will ask you DB information corresponding to this TEST string, you need to key in server name,user id,password and db name on command line once, then this program will encrype and it will decrypt automatically and connect to DB next time.
- You can try it ! If any bug, please contact me for free.