Skip to main content

parse_sri

Function parse_sri 

Source
pub fn parse_sri(integrity: &str) -> Option<(String, String)>
Expand description

Parses Subresource Integrity (SRI) format and returns hash as hex string.

SRI format: “algorithm-base64string” (e.g., “sha512-9NET910DNaIPng…”)

Returns the algorithm name and hex-encoded hash digest.