Base62
Base62 Encoder/Decoder for Java
Install / Use
/learn @seruco/Base62README
Base62 
A Base62 Encoder/Decoder for Java
Getting Started
For Maven-based projects, add the following to your pom.xml file. This dependency is available from the Maven Central repository.
<dependency>
<groupId>io.seruco.encoding</groupId>
<artifactId>base62</artifactId>
<version>0.1.3</version>
</dependency>
Usage
Base62 base62 = Base62.createInstance();
Encoding
final byte[] encoded = base62.encode("Hello World".getBytes());
new String(encoded); // is "73XpUgyMwkGr29M"
Decoding
final byte[] decoded = base62.decode("73XpUgyMwkGr29M".getBytes());
new String(decoded); // is "Hello World"
Character Sets
This library supports two character sets: GMP-style or inverted. The difference between these two is whether the upper case letters come first, 0-9A-Za-z (GMP), or last, 0-9a-zA-Z (inverted).
By default, we prefer the GMP-style character set. If you want to use the inverted character set, simply do this:
Base62 base62 = Base62.createInstanceWithInvertedCharacterSet();
Licensing
This project is licensed under the MIT License.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
