Id32

Just another numeric id encoder/decoder.

Лицензия

Лицензия

Группа

Группа

com.apicatalog
Идентификатор

Идентификатор

id32
Последняя версия

Последняя версия

3.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Id32
Just another numeric id encoder/decoder.
Ссылка на сайт

Ссылка на сайт

https://github.com/filip26/id32
Система контроля версий

Система контроля версий

https://github.com/filip26/id32

Скачать id32

Имя Файла Размер
id32-3.0.pom
id32-3.0.jar 6 KB
id32-3.0-sources.jar 4 KB
id32-3.0-javadoc.jar 396 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.apicatalog/id32/ -->
<dependency>
    <groupId>com.apicatalog</groupId>
    <artifactId>id32</artifactId>
    <version>3.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.apicatalog/id32/
implementation 'com.apicatalog:id32:3.0'
// https://jarcasting.com/artifacts/com.apicatalog/id32/
implementation ("com.apicatalog:id32:3.0")
'com.apicatalog:id32:jar:3.0'
<dependency org="com.apicatalog" name="id32" rev="3.0">
  <artifact name="id32" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.apicatalog', module='id32', version='3.0')
)
libraryDependencies += "com.apicatalog" % "id32" % "3.0"
[com.apicatalog/id32 "3.0"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.13.1

Модули Проекта

Данный проект не имеет модулей.

Numeric Id Encoder/Decoder.

Just another variation on Base32 encoding.

Java CI with Maven Maintainability Rating Coverage Maven Central License

Goals

  • URL / URI / IRI safe
  • one case letters and digits only
  • low transcription error rate
  • low risk of accidental profanity

Examples

// default alphabet
Id32.encodeLong(823543l) : "3R8Z"
Id32.encodeLong(8922003266371364727l) : "8ZWK1SC2XBJ5Z"
                
Id32.decodeLong("JKYZ3YY") : 10000000000l
Id32.decodeLong("BYYYYY")  : 33554432l

Id32.decodeLong("iphone") == Id32.decodeLong("1PH0NE") : 618545224

// custom alphabet
Id32.encodeLong(123456l, Alphabet.of('X', 'Z', ...));

Default Alphabet

	'Y', 'B', 'N', 'D', 'R',
	'F', 'G', '8', 'E', 'J',
	'K', 'M', 'C', 'P', 'Q', 
	'X', '0', 'T', '1', 'V', 
	'W', 'L', 'S', 'Z', '2',
	'3', '4', '5', 'H', '7', 
	'6', '9' 

Letters A,I,O and U are excluded.

Версии библиотеки

Версия
3.0