Skip to content
/ plates Public

Generate readable hash or encoding in the style of license plates 🛗 沪B·3W64T

Notifications You must be signed in to change notification settings

Ysoding/plates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plates

A tiny lib to generate human-readable hash from a string in the style of license plates.

Use

let a = plates::PlateCode::encode("hello world123", true);
println!("{}", a); // 🍔 藏G·NBSWY 🦘 鲁H·3DPEB 🛗 沪B·3W64T 💣 粤M·MMQYT 🍨 津K·EMYAA ✂️
println!("{}", plates::PlateCode::decode(&a)); // hello world123

let b = plates::PlateCode::encode("hello world456", false);
println!("{}", b); // 苏Y·NBSWY 琼Z·3DPEB 湘B·3W64T 甘B·MMQ2D 桂V·KNQAA
println!("{}", plates::PlateCode::decode(&b)); // hello world456

println!("{}", plates::PlateCode::hash("test", true)); // 🧼 鲁E·L75AL ⚰️
println!("{}", plates::PlateCode::hash("test", false)); // 鲁E·L75AL

Credit

forked from Project Generate readable hash or encoding in the style of license plates 📦 鄂A·22391

About

Generate readable hash or encoding in the style of license plates 🛗 沪B·3W64T

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages