[ic] Encrypting password

Davor Ocelic docelic at mail.inet.hr
Wed Nov 24 05:38:06 EST 2004

> Where 'new_password' corresponds to the new password you want and the 
> other string is just a random string of junk. The output of this command 
> can be put into the password field for a particular user record, and 
> then that user can use "new_password". Of course, the new password is 
> visible in the shell's command history, but for a temporary measure it's 
> sometimes handy, particularly for admin access...

And to avoid having left anything in your shell history file 
(the password or salt), you can use:

perl -e'print crypt(substr(<STDIN>,0,-1), join "", (".", "/", 0..9, "A".."Z", "a".."z")[rand 64,rand 64]'

(And then type in the password on next line.

Alternatively, you can exit the shell with 'kill -9 0' so it won't save
the history.


More information about the interchange-users mailing list