Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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 passwordafter 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

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

![]() |
![]() |
![]() |

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