Base62

Base62 Encoding and Decoding - Base62

Introduction

Base62 encoding is composed of 10 digits, 26 uppercase English letters, and 26 lowercase English letters. It is commonly used in the field of security and short URL generation.

Usage

String a = "伦家是一个非常长的字符串66";

// 17vKU8W4JMG8dQF8lk9VNnkdMOeWn4rJMva6F0XsLrrT53iKBnqo
String encode = Base62.encode(a);

// Restores to 'a'
String decodeStr = Base62.decodeStr(encode);