cufflink-cli 0.22.0

CLI for the Cufflink CRUD microservice platform — deploy, init, and manage services
1
2
3
4
5
6
7
use sha2::{Digest, Sha256};

/// The SHA-256 of `bytes`, in hex: how a module, a native binary and a
/// bundle are named.
pub(crate) fn sha256_hex(bytes: &[u8]) -> String {
    hex::encode(Sha256::digest(bytes))
}