To create a SHA3_512 hash from a string in Rust, you'll need to use the crypto
and hex
crates. Here's an example function that takes a &str
input and returns a SHA3_512 hash as a String
:
main.rs231 chars11 lines
Here's how you can use the sha3_512
function to generate a hash for a given string:
main.rs213 chars5 lines
gistlibby LogSnag