08.11.2010, 20:41
(
Последний раз редактировалось RyDeR`; 11.11.2010 в 09:55.
)
Information
Read more information, about SHA512 in Wikipedia.
Function(s)
It has only one function:
Example(s)
First of all include SHA512 at the top of your script. (Not necessery though, you can also just add the native)
Will give us:
which is very secure.
Note
The buffer must have at least 128 as array size.
Download
Windows ~ SHA512 (Plugin (.dll) ; Include ; Source) - Click here to download
Linux (Many thanks to bigcomfycouch) ~ SHA512 (Plugin (.so) ; Include ; Source) - Click here to download
Read more information, about SHA512 in Wikipedia.
pawn Код:
/*
@Release Name: SHA512
@Release Type: Plugin
@Author: RyDeR`
@Update: 10/11/2010 - 14:30
@Credits: http://www.planetsourcecode.com/vb/scrip...p;lngWId=3
@Functions:
@Function: SHA512(const string[], buffer[], len);
@Info: Obvious.
@Params:
@string[] - The string you want to hash.
@buffer[] - String variable to store the hashed data in.
@len = Size of buffer.
*/
It has only one function:
pawn Код:
native SHA512(const string[], buffer[], len);
First of all include SHA512 at the top of your script. (Not necessery though, you can also just add the native)
pawn Код:
new
buffer[128]
;
SHA512("Hello World", buffer, sizeof(buffer));
print(buffer);
Код:
2c74fd17edafd80e8447b0d46741ee243b7eb74dd2149a0ab1b9246fb30382f27e853d8585719e0e67cbda0daa8f51671064615d645ae27acb15bfb1447f459b
Note
The buffer must have at least 128 as array size.
Download
Windows ~ SHA512 (Plugin (.dll) ; Include ; Source) - Click here to download
Linux (Many thanks to bigcomfycouch) ~ SHA512 (Plugin (.so) ; Include ; Source) - Click here to download