[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Encrypting password


> 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.


Enjoy,
-doc
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.