Boost logo

Boost Users :

From: Daniel James (daniel_james_at_[hidden])
Date: 2007-11-07 18:45:13


Mark Wyszomierski wrote:
> Hi,
>
> I'm trying to hash a string, something like:
>
> 1) Take string (password) from user
> 2) Hash it
> 3) Store to disk
>
> I see boost has some hashing features, but am not quite sure how they
> work. Do they do this type of thing? I'm looking for some really
> simple hashing, this is just for a simple application.

No, they're not suitable. Boost.Hash is designed to be used with in
memory hash tables.

You probably need a cryptographic hash, such as MD5 or one of the SHA
hash functions. I think the Adobe Source Libraries include these. And
there has also been talk of implementations for boost in the past (check
the vault and/or archives) but I don't think anything has been put
forward for review.

Daniel


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net