Skip to content
/ gfyhash Public

Hash to gfycat url style string

License

Notifications You must be signed in to change notification settings

mz2212/gfyhash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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());

About

Hash to gfycat url style string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages