How should I access Boost SHA1 hash?

boost, c++, sha1

Solution

Your choices are:

- Use `boost::uuids::detail::sha1`, and if it changes in a future release, deal with it then.

- Find another implementation of sha1 (say in Crypto++, for example), and use that.

Problem

I want to use `boost::uuids::detail::sha1` to create a hash for a large binary blob. See: boost uuid sha1 `sha1` is in the `detail` namespace and as such should not be 'relied upon'. How can I create the SHA1 hash for my blob without instantiating objects in `detail`?

Original source