Easy generation of 'Youtube' like id from Java.
Gradle:
repositories {
maven {
url "https://mvn.universal-development.com/public"
}
}
...
implementation 'com.unidev.idgenerator:youtube-id-generator:0.0.12'
Example :
import com.unidev.idgenerator.YoutubeIdGenerator;
YoutubeIdGenerator youtubeIdGenerator = new YoutubeIdGenerator();
String id = youtubeIdGenerator.generate("potato");
// pueXRwy1qs5MBK
Each time, for same input string, will be same generated id.