Crates.io | gfy-hash |
lib.rs | gfy-hash |
version | 0.3.0 |
source | src |
created_at | 2019-07-21 13:32:22.649771 |
updated_at | 2022-06-20 08:22:29.909473 |
description | A crate to create gfycat url style hashes |
homepage | |
repository | https://github.com/mz2212/gfyhash |
max_upload_size | |
id | 150561 |
size | 121,335 |
A crate to create gfycat style AdjectiveAdjectiveAnimal
"hashes".
They probably can't be considered real hashes as it's probably quite easy to create collisions, and they're almost certainly not cryptographically secure, so it's probably a (really) bad idea to use them in that way.
Some basic usage is like so:
use gfyhash::gfyhash;
let bar = String::from("foo");
// Yeah, the function signature isn't super pretty, but Rust doesn't allow for default arguments
println!("{}" gfyhash(&bar, None, None, None).unwrap());