Skip to content

kkuegler/human-readable-ids-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

human-readable-ids-java

A Java id generator to produce random human-readable identifiers like 'fast-elephant-42'

Maven

<dependency>
    <groupId>com.github.kkuegler</groupId>
    <artifactId>human-readable-ids-java</artifactId>
    <version>0.3</version>
</dependency>

Use

// create the generator once and use it any number of times, even concurrently across threads
HumanReadableIdGenerator idGen = new PermutationBasedHumanReadableIdGenerator();
String id = idGen.generate();

Acknowledgments

This project is based on the idea and word lists of human-readable-ids.js