since I can't echo a md5 encrypted string on a command line like: $1$3etGeBcI$2uyk9hR/jsiTrAK82cDth. and I can't format it using str_replace like: $crypt = str_replace("$", "\$", crypt($password)); it still ends up $1$3etGeBcI$2uyk9hR/jsiTrAK82cDth. is there something special to do to format a crypt string whereever there is a .
Thanks, Johns
i don't understand. if you would want to echo an encrypted variable, you could use this:
<? $md=md5("something_to_encrypt"); echo $md; ?>
if that's not what you want, explain a little more.
Well the goal of my project is for users to make accounts on the system on my linux system using the useradd user -p encrypted string
to my knowledge I have to use a cryped string with my -p option in useradd that is why I need to echo it
John