Hello
I need to decrypt the password to use in another aplication, how decrypt work in the script?
The another aplication it's made in PHP and I want to use the same DB, because I want the user must use the same account.
Can anyone help me?
Thanks.
XFileSharing Pro - Decrypt password
-
- Posts: 521
- Joined: Dec 19, 2009 5:12 pm
here is a example code of how it get done , use the same way and you can intregrate it
it are just snippets of code taken from index.cgi as i do not like to release the full part of the script
hopely you can do something with it
Greetings From PowerChaos
it are just snippets of code taken from index.cgi as i do not like to release the full part of the script
Code: Select all
usr_password=ENCODE(?,?),
$c->{pasword_salt},
my $user = $db->SelectRow("SELECT *,DECODE(usr_password,?) as usr_password FROM Users WHERE usr_id=? AND usr_rapid_login=?",$c->{pasword_salt},$usr_id,$confirm_key);
my $user = $db->SelectRow("SELECT *, DECODE(usr_password,?) as usr_password
FROM Users
WHERE usr_login=?
OR usr_email=?",$c->{pasword_salt}
{site_name}: password reminder", "Login: $user->{usr_login}\nPassword: $user->{usr_password}" );
Greetings From PowerChaos