1

Read user input, Encrypt the data and write to file

view story
linux-howto

http://www.unix.com – Hi, can some one help me how to encrypt and decrypt a file. AIM: reade user input, encrypt it and save it to file. while decryption read the encrypted file decrypt it and save the output in some variable. Example: consider we have Credentials.txt file with content username: password when user run a script, it should ask them to enter username and password in format of "username: password". when user enters them, it should get encrypted and save to credentials.txt file. while decryption, read the credentials.txt file decrypt it, then split the content before and after (HowTos)