func SHA-1,CRC,MD5 who has algorithm?
#1

Who has an example of the algorithm: SHA-1, SHA-256, CRC, MD5 hashing function?
The analogue SHA256_PassHash(password[], salt[], ret_hash[], ret_hash_len);

You can also give an example other algorithms.
Reply
#2

https://sampwiki.blast.hk/wiki/SHA256_PassHash

You shall change the Salt, and keep it a secret.
Reply
#3

Quote:
Originally Posted by liquor
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/SHA256_PassHash

You shall change the Salt, and keep it a secret.
You do not understand me
I asked - who have algorithms this functions?

Код:
stock SHA-1(string[], ...) {
algorithm ...
}

stock CRC(string[], ...) {
algorithm ...
}

stock MD5(string[], ...) {
algorithm ...
}
Reply
#4

Most hashes are only available in plugins.

https://sampforum.blast.hk/showthread.php?tid=582634
https://sampforum.blast.hk/showthread.php?tid=496953

MD5 is also available as an include, but I can't find it right now.
Reply
#5

Quote:
Originally Posted by kvann
Посмотреть сообщение
Most hashes are only available in plugins.

https://sampforum.blast.hk/showthread.php?tid=582634
https://sampforum.blast.hk/showthread.php?tid=496953

MD5 is also available as an include, but I can't find it right now.
Thanks for the link but I'd like to see algorithms to write a native function and not to use plugin
Reply
#6

Well, here it is; if you cannot understand It, you won't be able to rewrite it for PAWN, I'm pretty sure it was never written for PAWN anyway.
http://pushover.sourceforge.net/repos/head/src/sha1.cpp
Reply
#7

Here's the MD5 include: https://github.com/GRGServer/SAMP/bl...cludes/MD5.inc
Reply
#8

@All

Thank you very much. I appreciate it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)