It's a bit off topic, but it's related to my Links mod
I understand how to crypt the passwords:
# 'password.txt' file contains only five numbers: 12345
open (FILE, "password.txt") | | &error("Oops!");
$INPUT{'password'} = <FILE>;
close (FILE);
$newpassword = crypt($INPUT{'password'}, aa);
print "Content-type: text/plain\n\n";
print "$newpassword";
But I didn't get how to do this job backwards. I need to get my file w/ crypted password, and then display the plain notcrypted "12345".
Anybody knows how to do this crypting backwards?
Thank you in advance.
------------------
Complete Index of Web Master's Resources: http://www.cellwarp.com

I understand how to crypt the passwords:
Code:
#!/usr/bin/perl -w # 'password.txt' file contains only five numbers: 12345
open (FILE, "password.txt") | | &error("Oops!");
$INPUT{'password'} = <FILE>;
close (FILE);
$newpassword = crypt($INPUT{'password'}, aa);
print "Content-type: text/plain\n\n";
print "$newpassword";
But I didn't get how to do this job backwards. I need to get my file w/ crypted password, and then display the plain notcrypted "12345".
Anybody knows how to do this crypting backwards?
Thank you in advance.
------------------
Complete Index of Web Master's Resources: http://www.cellwarp.com