Encrypting a string value

Florian Diesch diesch at spamfence.net
Fri Oct 16 07:32:36 UTC 2009


Ray Parrish <crp at cmc.net> writes:

> I am writing yet another script, and I would like to know if there are 
> any bash commands, or installable binaries that will encrypt and decrypt 
> a text string.

For simple substitution ciphers you can use tr.
To use crypt(3) (which is used to encrypt the password in /etc/shadow)
there is mkpasswd (part of the whois package).


   Florian
-- 
<http://www.florian-diesch.de/software/shell-scripts/>




More information about the ubuntu-users mailing list