Regression testing of SHA-1 signatures via command-line

I wrote a data extraction utility which uses PolarSSL to export a Base64-encoded SHA-1 digest of some internal metadata (a string of JSON-formatted data), to help validate archive integrity: $ unstarch –sha1-signature .foo 7HkOxDUBJd2rU/CQ/zigR84MPTc= So far, so good. But now I want to validate that the metadata are being digested correctly through some independent means, […]