🟩 Compute MD5, SHA1 or SHA256 hashes for a stream of bytes
SaneCppHashing.h library abstracts OS API to compute MD5, SHA1 and SHA256 hashes.
| Hashing Algorithm | Description |
|---|---|
| SC::Hashing::TypeMD5 | Compute MD5 hash for the incoming stream of bytes. |
| SC::Hashing::TypeSHA1 | Compute SHA1 hash for the incoming stream of bytes. |
| SC::Hashing::TypeSHA256 | Compute SHA256 hash for the incoming stream of bytes. |
🟩 Usable
The library is very simple it it has what is needed so far (mainly by Build).
Compute MD5, SHA1 or SHA256 hash for stream of data.
Data can be added until needed with SC::Hashing::add call. SC::Hashing::getHash will generate an actual SC::Hashing::Result holding the computed hash.
Example:
Example with update (for hashing longer streams of data):
🟦 Complete Features:
💡 Unplanned Features:
LOC counts exclude comments. Library counts files physically under Libraries/Hashing. Single File counts SaneCppHashing.h. Standalone counts SaneCppHashingStandalone.h and intentionally includes dependency payloads.
| Metric | Header | Source | Sum |
|---|---|---|---|
| Library | 95 | 292 | 387 |
| Single File | 404 | 372 | 776 |
| Standalone | 404 | 372 | 776 |