(normalized: &str)
| 460 | } |
| 461 | |
| 462 | pub 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)] |
| 469 | pub struct Viewer { |