sha-to-hex

Crates.iosha-to-hex
lib.rssha-to-hex
version1.1.0
sourcesrc
created_at2021-10-30 21:42:39.931564
updated_at2024-05-18 03:54:57.024007
descriptionSimple function to encode string using secret and return hex string
homepage
repositoryhttps://github.com/rustanigans/sha-to-hex
max_upload_size
id474514
size7,720
Steven (Sibz)

documentation

README

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

Commit count: 13

cargo fmt