Skip to main content

Module hash

Module hash 

Source
Expand description

Hashing utilities for GitTorrent

Functionsยง

hash_string
Hash a string to create an identifier
sha256
Calculate SHA256 hash of data
sha256_data
Calculate SHA256 hash of data and return as Sha256Hash (alias for sha256_git)
sha256_git
Calculate SHA256 hash and return as Sha256Hash type
sha256_hex
Calculate SHA256 hash and return as hex string
verify_sha256
Verify that a given SHA256 matches the data