You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing a bit with rapidjson and came up with this simple Handler for calculating a SHA1 hash value for a Document (with a little bit of a help from boost::uuids::detail::sha1):
Besides, you can also use Reader, if you only need to compute hash for a JSON but not do anything more on it. Then there will be no overhead of creating a DOM.
A good thing is that, without any modification, your code can do that perfectly.
I was playing a bit with
rapidjson
and came up with this simpleHandler
for calculating aSHA1
hash value for aDocument
(with a little bit of a help fromboost::uuids::detail::sha1
):Maybe you find that useful and want to provide as an additional example?
The text was updated successfully, but these errors were encountered: