• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] SHA-256 Password Hashing
#1
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.
  Reply
#2
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...l?t=581259 its was added in R2 and not R1
Away
  Reply
#3
Why not stay on R2?



https://open.mp/docs/translations/th/scr...6_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.
  Reply
#4
(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...l?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?



https://open.mp/docs/translations/th/scr...6_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.



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.
  Reply


Forum Jump: