PureHash Library - Support 40+ hash algorithm

Developed or developing a new product in PureBasic? Tell the world about it.
ward
User
User
Posts: 13
Joined: Mon Mar 20, 2006 8:44 am

PureHash Library - Support 40+ hash algorithm

Post by ward »

Features
- Support 40+ hash algorithms (including some checksums)
- Same interface as build-in cipher library, but fast
- Receive hash as binary data
- Unicode supported
- Free

Example

Code: Select all

Debug PureHash_MD5Fingerprint("Test", 4)

H = PureHash_ExamineMD5Fingerprint()
PureHash_NextMD5Fingerprint(H, "Te", 2)
PureHash_NextMD5Fingerprint(H, "st", 2)
Debug PureHash_FinishMD5Fingerprint(H)

Debug PureHash_MD5FileFingerprint(#PB_Compiler_File)

*Buffer = AllocateMemory(PureHash_MD5ByteLength())
PureHash_MD5Fingerprint("Test", 4, *Buffer)
PureHash_MD5FileFingerprint(#PB_Compiler_File, *Buffer)
FreeMemory(*Buffer)
Supported Hashes List

Code: Select all

CRC16
CRC32
ADLER32
MD2
MD4
MD5
SHA0
SHA1
SHA224
SHA256
SHA384
SHA512
HAVAL128_3
HAVAL128_4
HAVAL128_5
HAVAL160_3
HAVAL160_4
HAVAL160_5
HAVAL192_3
HAVAL192_4
HAVAL192_5
HAVAL224_3
HAVAL224_4
HAVAL224_5
HAVAL256_3
HAVAL256_4
HAVAL256_5
TIGER
TIGER2
WHIRLPOOL
WHIRLPOOL0
WHIRLPOOL1
RIPEMD128
RIPEMD160
RIPEMD256
RIPEMD320
SNEFRU128
SNEFRU256
BLAKE224
BLAKE256
BLAKE384
BLAKE512
PANAMA
GOST
PS: Checksum algorithms are returned in string formt just like other hash function.

Download Link - Removed
Last edited by ward on Fri Feb 13, 2009 1:37 am, edited 1 time in total.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Euh... 4 posts since 2006? Is there something broken in the forum? :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
funk.munich
User
User
Posts: 11
Joined: Wed Apr 26, 2006 9:27 pm

Re: PureHash Library - Support 40+ hash algorithm

Post by funk.munich »

Hi ward,

is it still possible to get this sources from you?

Thx in advance,
Daniel
Post Reply