[Pawn] SHA-256 Password Hashing - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] SHA-256 Password Hashing (/showthread.php?tid=1639) |
SHA-256 Password Hashing - JaKe Elite - 2021-02-05 Hi! I would like to know if SHA-256 Password hashing is available for SAMP 0.3.7 R1? I tried looking into the a_samp.inc but the native function wasn't there although it says in the wiki that it is available on 0.3.7 R1. Is there any way I can reverse or transfer to a different password hashing method replacing SHA-256 without affecting the accounts?? I am planning on downgrading my server due to personal reasons / server needs. RE: SHA-256 Password Hashing - Banditul - 2021-02-05 Seems the server version of R1 got yeeted out of existence because i cant find itto check that. But anyway add this to your a_samp Code: native SHA256_PassHash(password[], salt[], ret_hash[], ret_hash_len); // SHA256 for password hashing And should work Edit: Nvm, acording to this https://sampforumarchive.com/forum.sa-mp.com/showthreadb227.html?t=581259 its was added in R2 and not R1 RE: SHA-256 Password Hashing - Dobby - 2021-02-05 Why not stay on R2? https://open.mp/docs/translations/th/scripting/functions/SHA256_PassHash Edit: You should consider getting the?SA-MP stlib?if you haven't got it. It'll have the right a_samp.inc version you require. RE: SHA-256 Password Hashing - JaKe Elite - 2021-02-06 (2021-02-05, 04:26 PM)Banditul Wrote: Seems the server version of R1 got yeeted out of existence because i cant find itto check that. But anyway add this to your a_samp Code: native SHA256_PassHash(password[], salt[], ret_hash[], ret_hash_len); // SHA256 for password hashing And should work Edit: Nvm, acording to this https://sampforumarchive.com/forum.sa-mp.com/showthreadb227.html?t=581259 its was added in R2 and not R1 Tried doing it, gave out some native errors lmao.? (2021-02-05, 10:23 PM)Dobby Wrote: Why not stay on R2? I am planning to use SAMP-AC (Whitetiger's) that is or was supported on SAMP 0.3.7 R1 and cannot be run on the R2 version due to the GDK differences that were used on the plugin. |