
7 Nov
2007
7 Nov
'07
11:45 p.m.
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