2 unstable releases
0.2.0 | Jul 18, 2020 |
---|---|
0.1.0 | Jul 12, 2020 |
#1932 in Cryptography
8KB
113 lines
Big Hash
Compute MD5, SHA256, and SHA512 hashes of data through the std::hash
API.
Be warned that:
std::hash
implementations are not necessarily consistent cross-platform, for example, they may use native-endianness, or be dependent on implementation details of things likeOsString
.- MD5 should be considered cryptographically broken and unsuitable for cryptographic use.
Features
The hash-md5
, hash-sha256
, and hash-sha512
features toggle the
compilation of their respective hashing utilities.
No-std Support
This crate does not depend on the stdlib, and will always compile in no-std mode.
lib.rs
:
Compute MD5, SHA256, and SHA512 hashes of data through the core::hash
API.
Be warned that:
core::hash
implementations are not necessarily consistent cross-platform, for example, they may use native-endianness, or be dependent on implementation details of things likeOsString
.- MD5 should be considered cryptographically broken and unsuitable for cryptographic use.
Dependencies
~16KB