String () { ByteBuffer byteBuffer = generateCustom(PAYLOAD_LENGTH, DigestUtil.getRandom()); String uid = new String(Base62.encode(byteBuffer.array()), StandardCharsets.UTF_8); return uid.length() > MAX_ENCODED_LENGTH ? uid.substring(0, MAX_ENCODED_LENGTH) : uid; }