#hex-string #sha-256 #encode #secret #byte #return

sha-to-hex

Simple function to encode string using secret and return hex string

4 stable releases

1.1.0 May 18, 2024
1.0.2 May 18, 2024
1.0.1 Oct 30, 2021

#957 in Cryptography

Download history 15/week @ 2024-09-29

142 downloads per month

Custom license

4KB

Sha-to-hex

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

Dependencies

~5–13MB
~234K SLoC