Skip to main content

hash_string

Function hash_string 

Source
pub fn hash_string(input: &str) -> String
Expand description

Calculates a hash from a string input.

Returns a hex-encoded blake3 hash string.

§Arguments

  • input - The string to hash.

§Example

use soar_utils::hash::hash_string;

let hash = hash_string("hello world");
assert_eq!(hash.len(), 64);