Вопрос

I am trying to implement base32 with a custom charset, basically [A-Z0-5]. Unfortunately I am failing to build the lookup table for that.

Does anyone have any pointers on how I can go about building the whole encoding and decoding scheme?

Это было полезно?

Решение

Have a look at existing base32 implementations ( https://github.com/agnoster/base32-js ), it's usually not longer than a few 100 lines.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top