Skip to content

Helper function to create a sha256 hmac hex string from secret and message

License

Notifications You must be signed in to change notification settings

rustanigans/sha-to-hex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Helper function to create a sha256 hmac hex string from secret and message

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published