ggstd 0.1.0

Partial implementation of Go standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2023 The rust-ggstd authors.
// SPDX-License-Identifier: 0BSD

use ggstd::crypto::sha1;
use ggstd::encoding::hex;

fn main() {
    let msg = "hello world";
    let hash = sha1::sum(msg.as_bytes());
    println!("message:   {}", msg);
    println!("sha1 hash: {}", hex::encode_to_string(&hash));
}