gfy-hash

Crates.iogfy-hash
lib.rsgfy-hash
version0.3.0
sourcesrc
created_at2019-07-21 13:32:22.649771
updated_at2022-06-20 08:22:29.909473
descriptionA crate to create gfycat url style hashes
homepage
repositoryhttps://github.com/mz2212/gfyhash
max_upload_size
id150561
size121,335
Mike (mz2212)

documentation

README

gfyhash

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());
Commit count: 8

cargo fmt