[Plugin] SHA512
#1

Information
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.
*/
Function(s)
It has only one function:
pawn Код:
native SHA512(const string[], buffer[], len);
Example(s)
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);
Will give us:
Код:
2c74fd17edafd80e8447b0d46741ee243b7eb74dd2149a0ab1b9246fb30382f27e853d8585719e0e67cbda0daa8f51671064615d645ae27acb15bfb1447f459b
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
Reply


Messages In This Thread
SHA512 - by RyDeR` - 08.11.2010, 20:41
Re: SHA1 - by Moglizorz. - 08.11.2010, 20:45
Re: SHA1 - by RyDeR` - 08.11.2010, 20:49
Re: SHA1 - by Burridge - 08.11.2010, 20:50
Re: SHA1 - by RyDeR` - 08.11.2010, 20:52
Re: SHA1 - by WillyP - 08.11.2010, 21:17
Respuesta: SHA1 - by anonymousx - 08.11.2010, 21:20
Re: SHA1 - by bigcomfycouch - 08.11.2010, 21:30
Re: SHA1 - by Burridge - 08.11.2010, 21:31
Re: SHA1 - by MrDeath537 - 09.11.2010, 03:44
Re: SHA1 - by Retardedwolf - 09.11.2010, 05:06
Re: SHA1 - by RyDeR` - 09.11.2010, 10:13
AW: SHA1 - by Extremo - 09.11.2010, 10:28
Re: SHA1 - by Zh3r0 - 09.11.2010, 12:02
Re: SHA1 - by [H]265 - 09.11.2010, 14:20
Re: SHA1 - by Brian_Furious - 09.11.2010, 14:26
Respuesta: SHA1 - by MrDeath537 - 09.11.2010, 14:28
Re: SHA1 - by RyDeR` - 09.11.2010, 15:04
Re: SHA1 - by HyperZ - 09.11.2010, 15:25
Re: SHA1 - by Brian_Furious - 09.11.2010, 16:07
Re: SHA1 - by RyDeR` - 09.11.2010, 16:17
Respuesta: SHA1 - by xenowort - 09.11.2010, 16:36
Re: SHA1 - by Brian_Furious - 09.11.2010, 16:38
Respuesta: Re: SHA1 - by xenowort - 09.11.2010, 16:41
Re: Respuesta: SHA1 - by DiDok - 09.11.2010, 17:32
Re: Respuesta: SHA1 - by ziomal432 - 09.11.2010, 19:04
Respuesta: Re: Respuesta: SHA1 - by xenowort - 09.11.2010, 19:16
Respuesta: Re: SHA1 - by MrDeath537 - 09.11.2010, 19:23
Re: SHA1 - by nemesis- - 09.11.2010, 22:01
Re: SHA512 - by HyperZ - 13.01.2011, 10:14
Re: SHA512 - by Rock_Ro - 14.07.2011, 07:55
Re: SHA512 - by Lorenc_ - 14.07.2011, 09:06
Re: SHA512 - by FANEX - 14.07.2011, 10:26
Re: SHA512 - by Lorenc_ - 14.07.2011, 15:59
Re: SHA512 - by FireCat - 14.07.2011, 16:11
Re: SHA512 - by Rock_Ro - 14.07.2011, 23:03
Re: SHA512 - by Dodus - 09.09.2011, 15:36
Re: SHA512 - by Kaperstone - 09.09.2011, 15:54
AW: Re: SHA512 - by thiaZ_ - 09.09.2011, 16:01
Re: SHA512 - by cssbart - 22.08.2012, 15:06
Re: SHA512 - by Edvin - 22.08.2012, 16:23
Re: SHA512 - by Glint - 22.08.2012, 16:50
Re: SHA512 - by Memoryz - 22.08.2012, 16:54
Re: SHA512 - by Jajetin - 16.10.2013, 12:26
Re: SHA512 - by Sublime - 16.10.2013, 13:12
Re: SHA512 - by DaRealShazz - 23.10.2013, 00:45
Re: SHA512 - by Tatar1n - 29.12.2013, 10:12
AW: SHA512 - by Mellnik - 29.12.2013, 10:34
Re: SHA512 - by Tatar1n - 29.12.2013, 10:39
Re: SHA512 - by seegras - 18.02.2015, 02:09

Forum Jump:


Users browsing this thread: 1 Guest(s)