# SUSE Linux 11 SP1 Encryption Help

**URL:** <https://forums.suse.com/t/suse-linux-11-sp1-encryption-help/28722>\
**Category:** SLES Configure-Administer\
**Created:** [October 3, 2016, 10:35am UTC](https://forums.suse.com/t/suse-linux-11-sp1-encryption-help/28722 "2016-10-03T10:35:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musahuda](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@musahuda](https://forums.suse.com/u/musahuda)\
**Post date:** [October 3, 2016, 10:35am UTC](https://forums.suse.com/t/suse-linux-11-sp1-encryption-help/28722/1 "2016-10-03T10:35:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [October 3, 2016, 4:21pm UTC](https://forums.suse.com/t/suse-linux-11-sp1-encryption-help/28722/2 "2016-10-03T16:21:35Z")

</div>

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/](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…
