MCPcopy Create free account
hub / github.com/emwalker/digraph / sha256_base64

Function sha256_base64

backend/src/types.rs:462–466  ·  view source on GitHub ↗
(normalized: &str)

Source from the content-addressed store, hash-verified

460}
461
462pub fn sha256_base64(normalized: &str) -> String {
463 let bytes = normalized.as_bytes();
464 let hash = Sha256::digest(bytes);
465 engine::general_purpose::URL_SAFE_NO_PAD.encode(hash)
466}
467
468#[derive(Clone, Debug)]
469pub struct Viewer {

Callers 3

parseMethod · 0.85
topicFunction · 0.85
sha256_idFunction · 0.85

Calls 1

as_bytesMethod · 0.80

Tested by 1

topicFunction · 0.68