On Mon, Jul 18, 2005, Tore Anderson wrote: > > Hi. Does anyone have a script that implements the encrypting/ > decrypting algorithm of User-Password that they'd like to share? I > want to be able to input the Authenticator, shared secret, a > password, and then get the encrypted password in return (or vice > verca).
You won't get a decrypted password without doing a dictionary check with cracklib or similar software as *nix passwords are done with a one-way encryption. Clear text passwords may be tested against the encrypted passwords using the ``crypt(3)'' C routine (python and perl have a scriptable interface to this). In python this check might be: from crypt import crypt cryptpw == crypt(plaintext, cryptpw) Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``Capitalism works primarily because most of the ways that a company can be scum end up being extremely bad for business when there's working competition.'' -rra - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html