SA-MP Forums Archive
How to decrypt a password? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to decrypt a password? (/showthread.php?tid=554309)



How to decrypt a password? - 0B3Y - 03.01.2015

Hello guys, i want to figure how to decrypt a password... i have something like this

Код:
stock Encrypt(string[])
{
	for(new x=0; x < strlen(string); x++)
	  {
		  string[x] += (3^x) * (x % 15);
		  if(string[x] > (0xff))
		  {
			  string[x] -= 256;
		  }
	  }
	return 1;
}
and i have the example of encrypted password like this

Код:
-484LLURŠ“Ќ‘азк0IRixҐґГЦ
How can i decrypt that password? Thanks


Re: How to decrypt a password? - Ryan_Bowe - 03.01.2015

The point of an encrypted password is that it isn't supposed to be decrypted..


Re: How to decrypt a password? - Mauzen - 03.01.2015

Thats a rather simple encryption as it doesnt use a key, and is not a self-referencing hash.
It can simply be decrypted. But im not going to explain how to do that, as I cant know what youre using this for. Whatever, just respect the privacy of your users.


Re: How to decrypt a password? - Arxalan - 03.01.2015

****** , i think he needs it in case of player lost/forgot his/her password . So he can recover the player's password.


Re: How to decrypt a password? - 0B3Y - 03.01.2015

Ok guys... I appreciate you answer... Thanks.


Re: How to decrypt a password? - ATGOggy - 03.01.2015

Hashes are oneway and cannot be decrypted.

If you want it to recover passwords, make a command /changepassword.

Get the code of the new password and paste it there.