Computing.Net > Forums > Linux > How to encrypt a password in Linux

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to encrypt a password in Linux

Reply to Message Icon

Name: kenji
Date: March 9, 2003 at 17:02:48 Pacific
OS: Mandrake Linux 9.0
CPU/Ram: 256 sdram
Comment:

i want to develop a script using bourne shell to create an account management system in linux,i want to know how to encrypt a password. let say
echo -n "Plese Enter Password : "
read password

after reading the value from user, i want to encrypt it then write to /etc/passwd and /etc/shadow file....anyone knows how to do this in Linux??
please advise thanks for your help



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: March 11, 2003 at 07:26:41 Pacific
Reply:

Why not use "passwd", call it from within the script and pass it the variable from the input with the --stdin switch?


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: How to encrypt a password in Linux

How to encrypt a password in Linux www.computing.net/answers/linux/how-to-encrypt-a-password-in-linux/19054.html

How to install a modem in linux (crypto bes 56k external) www.computing.net/answers/linux/how-to-install-a-modem-in-linux-crypto-bes-56k-external/2516.html

how to create a file in graphical www.computing.net/answers/linux/how-to-create-a-file-in-graphical/23740.html