| Crates.io | sha-to-hex |
| lib.rs | sha-to-hex |
| version | 1.1.0 |
| created_at | 2021-10-30 21:42:39.931564+00 |
| updated_at | 2024-05-18 03:54:57.024007+00 |
| description | Simple function to encode string using secret and return hex string |
| homepage | |
| repository | https://github.com/rustanigans/sha-to-hex |
| max_upload_size | |
| id | 474514 |
| size | 7,720 |
Simple function to encode string using secret and return hex string
use sha_to_hex::encode;
let encoded = encode(msg, secret);
To encode bytes use encode_bytes:
use sha_to_hex::encode_bytes;
let encoded = encode_bytes(msg_as_bytes, secret_as_bytes);
For full usage see docs.rs: encode