@hackage base320.2.1.0
Fast RFC 4648-compliant Base32 encoding
Installation
Tested Compilers
Dependencies (6)
- base >=4.10 && <4.16
- bytestring ^>=0.10
- deepseq >=1.4.3.0 && <1.4.6.0
- ghc-byteorder ^>=4.11.0.0
- text ^>=1.2
- text-short ^>=0.1 Show all…
Dependents (11)
@hackage/ram, @hackage/nkeys, @hackage/tahoe-great-black-swamp, @hackage/tahoe-chk, @hackage/nix-serve-ng, @hackage/one-time-password, Show all…
Base32
Padded and unpadded base32 and base32hex encoding and decoding for Text and ByteString values.
For the companion optics and pattern synonyms, see base32-lens.
Summary
The following types are supported for both padded and unpadded std and extended hex alphabets:
Data.ByteStringData.ByteString.LazyData.ByteString.ShortData.TextData.Text.LazyData.Text.Short
Additionally this library has
- Better performance than
memoryfor encode and decode 3-4x. - Optics for handling more complex structures with Base32 representations via the
base32-lenspackage - Checks for both validity and correctness of Base32 and Base32hex encodings
There are no dependencies aside from those bundled with GHC, text-short, and the ghc-byteorder re-export.