/human-readable-ids-java

Generate human-readable id strings in Java

Primary LanguageJavaApache License 2.0Apache-2.0

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