Erlang 向けの Base32 ライブラリです。次の種類のバージョンに対応しています。
- RFC 4648 - The Base16, Base32, and Base64 Data Encodings
- Crockford's Base 32
- Clockwork Base32: Crockford's Base32 をシンプルにしたバージョンです。
rebar3 compile
例:
$ rebar3 shell
1> base32:decode(clockwork, <<"AXQQEB10D5T20WK5C5P6RY90EXQQ4TVK44">>).
<<"Wow, it really works!">>
2> base32:encode(clockwork, <<"Wow, it really works!">>).
<<"AXQQEB10D5T20WK5C5P6RY90EXQQ4TVK44">>
{deps, [{base32, "2023.1.0", {pkg, base32_clockwork}}]}.
rfc4648
: RFC 4648crockford
: Crockford's Base32crockford_check
: Crockford's Base32 (チェックサムつき)clockwork
: Clockwork Base32
Copyright 2021-2024, Shiguredo Inc.
Copyright 2021, SUZUKI Tetsuya (Original Author)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.