Is there a C hashing function with no dependencies?

353 Views Asked by At

I'm developing some experimental program that requires hashing strings.

I tried all the source code I could find on the internet but none of it seemed to work without any dependencies, can you please link the source to a cryptographic hashing function that has no dependencies, i.e. something that I can just copy/paste into my code and it would work?

PS I prefer a secure hashing function, but MD5 would be fine for now.

1

There are 1 best solutions below

7
On BEST ANSWER

You may want to check Simple MD5 implementation with no dependences.

Also check these proposals: hash function for string.

It is worth to mention that there are other open source implementations like:

Basic implementations of standard cryptography algorithms, like AES and SHA-1 and sphlib an open source library which provides optimized and portable implementations of many hash functions.