XFileSharing Pro - Decrypt password

Message
Author
iselavaz
Posts: 6
Joined: Aug 01, 2011 9:37 pm

Decrypt password

#1 Postby iselavaz » Sep 04, 2011 2:38 am

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.

nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

#2 Postby nyan » Sep 04, 2011 10:31 am

email support about this

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#3 Postby PowerChaos » Sep 09, 2011 12:48 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

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}" );


hopely you can do something with it :D

Greetings From PowerChaos


Return to “XFileSharing Pro”



Who is online

Users browsing this forum: No registered users and 0 guests