base32: Fast RFC 4648-compliant Base32 encoding

[ bsd3, data, library ] [ Propose Tags ] [ Report a vulnerability ]

RFC 4648-compliant Base32 encodings and decodings. This library provides performant encoding and decoding primitives, as well as support for textual values.


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.1, 0.1.1.1, 0.1.1.2, 0.2.0.0, 0.2.1.0, 0.2.2.0, 0.3, 0.3.1.0, 0.4
Change log CHANGELOG.md
Dependencies base (>=4.15 && <4.20), bytestring (>=0.11 && <0.13), deepseq (>=1.4.4.0 && <1.6), text (>=2.0 && <2.2), text-short (>=0.1 && <0.2) [details]
Tested with ghc ==9.0.2 || ==9.2.8 || ==9.4.7 || ==9.6.3 || ==9.8.1
License BSD-3-Clause
Copyright (c) 2020-2023 Emily Pillmore
Author Emily Pillmore
Maintainer emilypi@cohomolo.gy
Revised Revision 1 made by Bodigrim at 2024-05-05T22:01:20Z
Category Data
Home page https://github.com/emilypi/base32
Bug tracker https://github.com/emilypi/base32/issues
Source repo head: git clone https://github.com/emilypi/base32.git
Uploaded by topos at 2023-10-19T23:04:42Z
Distributions LTSHaskell:0.4, NixOS:0.4, Stackage:0.4
Reverse Dependencies 5 direct, 1 indirect [details]
Downloads 3547 total (107 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-10-20 [all 1 reports]

Readme for base32-0.4

[back to package description]

Base32

Build Status Hackage

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.ByteString
  • Data.ByteString.Lazy
  • Data.ByteString.Short
  • Data.Text
  • Data.Text.Lazy
  • Data.Text.Short

Additionally this library has

  • Better performance than memory for encode and decode 3-4x.
  • Optics for handling more complex structures with Base32 representations via the base32-lens package
  • Checks for both validity and correctness of Base32 and Base32hex encodings

There are no dependencies aside from those bundled with GHC, text-short.