Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 383 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 383 Bytes

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