mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 11:21:16 +01:00
* Search and install plugins PoC * Checksum * Tab sidebar for settings * Fix nested tabs, and tweaks * Table for plugin results * Deep links working * Focus window during deep links * Merge branch 'master' into plugin-directory * More stuff
9 lines
218 B
Rust
9 lines
218 B
Rust
use sha2::{Digest, Sha256};
|
|
|
|
pub(crate) fn compute_checksum(bytes: impl AsRef<[u8]>) -> String {
|
|
let mut hasher = Sha256::new();
|
|
hasher.update(&bytes);
|
|
let hash = hasher.finalize();
|
|
hex::encode(hash)
|
|
}
|