pub fn create_id_as_sha256() -> String
Expand description

Single function to create an id without IdsService It use sha256 hash algorithm and it encode output as hexadecimal lower case

example:

extern crate ids_service;

use crate::ids_service::crypto_hash::*;

fn main() {

    println!("Create an id sha256 without the service: {}", create_id_as_sha256());

}
Examples found in repository?
examples/quickstart2.rs (line 25)
22
23
24
25
26
27
fn main() {

    println!("Create an id sha512 without the service: {}", create_id_as_sha512());
    println!("Create an id sha256 without the service: {}", create_id_as_sha256());

}