Library for passwords (salt/hash) in C?

c, hash, passwords

Solution

I would definitely go with OpenSSL. Please, when it comes to encryption, don't try and roll your own, or just find something someone posted on the Internet. Go with something like OpenSSL that is verified, and trusted by millions every day. Home-brew and improperly implemented encryption is in my opinion a leading cause of security breaches on the Internet.

As Tibor mentioned, a salt is typically appended to the password before hashing. A unique salt greatly decreases the ability of a rainbow table based attack.

Problem

Does anyone know of a library or framework to salt and hash a password in C? How would I go about doing this in a program?

Original source