std::crypto::insecure¶
Status: experimental
Legacy / broken hashes (MD5, SHA-1). Compat only - never use for new code.
API details and source¶
The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.
| Item | Canonical signature or declaration | Description |
|---|---|---|
md5 |
fn md5(data: Vec<u8>) -> Vec<u8> |
One-shot MD5. |
md5_hex |
fn md5_hex(text: String) -> String |
One-shot MD5, hex-encoded. |
sha1 |
fn sha1(data: Vec<u8>) -> Vec<u8> |
One-shot SHA-1. |
sha1_hex |
fn sha1_hex(text: String) -> String |
One-shot SHA-1, hex-encoded. |