Home > OS >  Linux Shell scripts user name password database encryption
Linux Shell scripts user name password database encryption

Time:11-23

Requirements:
1. The key to separate the two files, one file to put half eg:/home/app/key/key1. TXT/home/app/key/key2. TXT
2. Shell scripts to save encrypted password eg: username=32 f435dgdr3! @ $# @ ^ password=4 r4fcse2rfcde * & amp; ^ % 43
3. The database link when merging two keys (key1 and key2) decryption operation, and then link the database SQL statements,
Can be in the link before the database encryption, decryption user name password through the command assigned to variables, and then link the database
4. Encryption using symmetric algorithms, so that we can share a secret key
5. Provide a command is used to encrypt, the command need to invoke the combined (key1 and key2) key,

For a great god, a large number of points to send!

  • Related