LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Encrypting Passwords in a commandline Script (https://www.linuxquestions.org/questions/linux-newbie-8/encrypting-passwords-in-a-commandline-script-84503/)

vendolis 08-22-2003 08:23 AM

Encrypting Passwords in a commandline Script
 
Hi,

i am working to set up a Automatik Installation for RH 7.3 in the Kickstart File you are able to set the RootPW in an encryted form.
I am searching for a Script that takes a clear password from the stdin and gives back the encrypted one to the stdout.

Would be very cool if anyone has something like that or knows where I can find one. I am no real scripter.. i can modify some but since I don t know Perl or python I am not able to build up one by my self. :rolleyes:

Thanks

Jan-Tajo
:newbie:

bastard23 08-29-2003 12:29 AM

Jan-Tajo,

openssl passwd -stdin
Make sure the openssl package is installed, but it probably is. ($ is the command line)
$ echo test1|openssl passwd -stdin
cIxaVCud2ZcI.

Good Luck,
chris


All times are GMT -5. The time now is 03:16 AM.