Zbase32
Human-oriented base-32 encoding
Install / Use
/learn @PSPDFKit-labs/Zbase32README
ZBase32
<img src="http://quickcheck-ci.com/p/pspdfkit-labs/zbase32.svg" alt="Build Status" width="130px">
Efficient implementation of z-base-32, Phil Zimmermann's human-oriented base-32 encoding.
z-base-32 is a Base32 encoding designed to be easier for human use and more compact. It includes 1, 8 and 9 but excludes l, v and 2. It also permutes the alphabet so that the easier characters are the ones that occur more frequently. It compactly encodes bitstrings whose length in bits is not a multiple of 8, and omits trailing padding characters. z-base-32 was used in Mnet open source project, and is currently used in Phil Zimmermann's ZRTP protocol, and in the Tahoe-LAFS open source project.
Installation and usage
-
Add zbase32 to your list of dependencies in
mix.exs:def deps do [{:zbase32, "~> 1.0.0"}] end -
Start encoding and decoding:
ZBase32.encode("hello") # => "pb1sa5dx" ZBase32.decode("pb1sa5dx") # => "hello"
Test coverage
We're using QuiviQ's QuickCheck to ensure correct roundtrips.:
forall input <- largebinary({:limit, 0, 512}) do
ensure (input |> ZBase32.encode() |> ZBase32.decode()) == input
end
Check out the project on http://quickcheck-ci.com.
This implementation has also manually been verified against the Python zbase32 1.1.5 package.
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
