This commit is contained in:
2026-08-16 18:27:58 +02:00
parent cdd6f0ccee
commit c48faa4d6e
6 changed files with 4152 additions and 3 deletions
+4 -1
View File
@@ -124,7 +124,10 @@ impl EmojiService {
Ok(())
}
pub fn hash(data: &[u8]) -> String {
format!("{:x}", Sha256::digest(data))
Sha256::digest(data)
.iter()
.map(|byte| format!("{byte:02x}"))
.collect()
}
pub async fn save_asset(
root: &Path,