Function encode_sha512_256

Source
pub fn encode_sha512_256(data: &str) -> Result<String, Box<dyn Error>>
Expand description

Encodes a string using SHA-512/256.

ยงExamples

use nutek_encode_lib::encoder;
let encoded = encoder::encode_sha512_256("hello").unwrap();
assert!(encoded.starts_with("e30d87cfa2a75db545eac4d61baf970366a8357c7f72fa95b52d0accb698f13a"));