Expand description
This crate is a way to represent anything that implements Hashable
as a (variable length) AdjectiveAdjectiveAnimal sequence.
My inspiration comes from the website gfycat as you probably gathered from the name of the crate. It’s probably worth noting that this “hash” is not cryptographically secure, and should not be used as such.
Thanks to a-type’s repo for the builtin wordlists.
Examples
Print a “gfyhashed” String
use gfyhash::gfyhash;
let foobar = String::from("foobar");
println!("{}", gfyhash(&foobar, None, None, None).unwrap());
Feature Flags
list_builtin
(default) - Enables the use of the builtin wordlists. These can be found in the lists subdirectory at the root of the repo.
Traits
Anything that can be represented as an array of bytes that someone would like to be “gfyhashed”
Functions
WyHash the string, then use that to create the “gfyhashed” representation