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 the delimiter
: and store them into two different variable like username should get stored in $usr and password should store in $passwd. i will use this variable in further script
im trying from very long time to hw to achive this. i will be very thank full if some one help me....