Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

encode passwords 64-based

Status
Not open for further replies.

wvdw

Programmer
Jul 31, 2000
20
NL
Hi,

I have a script that logs into a server (to query for data) but it uses the standard password. If this password has been changed the user must be able to enter the new password but this has to be 64-bases encoded before the script logs in to the server.

Does any body know if there is a module that will allow me to encrypt the password?

thanks.
 
For a module, try:

Or you can just encrypt any words by using the Perl's crypt() function:

$passwd = "perl";
$salt = 2;

print "Content-type: text/html\n\n";

print crypt($passwd,$salt);

Output
22RQ2.Iox4PuA

----------------------------------------
There is no Knowledge, That is not power.

Yes, i'm a MySQL Newbie.
-Aaron
----------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top