I want to encrypt a plain text e.g Apple_123 in my SUSE Linux 11 Shell Script so that no one can see the plain text. But when I use the plain text as password I will decrypt it using any SUSE Linux command, tools or RPM and use my shell script. Is it possible or not? Can anyone help?
On 10/03/2016 01:44 AM, musahuda wrote:[color=blue]
I want to encrypt a plain text e.g Apple_123 in my SUSE Linux 11 Shell
Script so that no one can see the plain text. But when I use the plain
text as password I will decrypt it using any SUSE Linux command, tools
or RPM and use my shell script. Is it possible or not? Can anyone help?[/color]
The best answer for you probably depends on what you want to do with the
file once it is decrypted, who else has access to the system, which other
programs use it, etc. I’ll assume this is some kind of shared system so
somebody else MAY be on the box at the time you do your stuff, but that
generally you don’t mind having the file on the box in some decrypted form
while you work on the file. With that in mind, using gpg probably makes
the most sense, as it is made to do encryption of some data with a
passphrase. To try to help explain it Google found a page that had
several different encryption options that show the processes they use, and
the first one is ‘gpg’:
http://www.tecmint.com/linux-password-protect-files-with-encryption/
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…