fast encrypt/decrypt string to decimal - 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: fast encrypt/decrypt string to decimal (
/showthread.php?tid=398394)
fast encrypt/decrypt string to decimal -
zgintasz - 09.12.2012
Hi,
need a function/algorithm to encrypt string to decimal(numbers only) and then when it's needed to decrypt it to string. A little example:
Код:
new string[ ] = "top secret";
new estring;
estring = encrypt_string(string);
//estring is something like 1579123004 or etc.
...
new dstring[50];
decrypt_string(dstring, estring);
//string should be the same as dstring
Thanks.