Skip to content

shiguredo/base32_clockwork

Repository files navigation

base32

Erlang 向けの Base32 ライブラリです。次の種類のバージョンに対応しています。

ビルド

rebar3 compile

利用

例:

$ rebar3 shell
1> base32:decode(clockwork, <<"AXQQEB10D5T20WK5C5P6RY90EXQQ4TVK44">>).
<<"Wow, it really works!">>
2> base32:encode(clockwork, <<"Wow, it really works!">>).
<<"AXQQEB10D5T20WK5C5P6RY90EXQQ4TVK44">>

rebar3 deps

{deps, [{base32, "2023.1.0", {pkg, base32_clockwork}}]}.

エンコード方式の種類

  • rfc4648: RFC 4648
  • crockford: Crockford's Base32
  • crockford_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.