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


Keywords
data, library, Propose Tags, Skip to Readme, , Index, Quick Jump, Data.Base16.Types, Data.ByteString.Base16, Data.ByteString.Lazy.Base16, Data.ByteString.Short.Base16, Data.Text.Encoding.Base16, Data.Text.Encoding.Base16.Error, Data.Text.Lazy.Encoding.Base16, Data.Text.Short.Encoding.Base16, base16-1.0.tar.gz, browse, Package description, Package maintainers, topos, edit package information , 0.1.1, 0.1.2.1, 0.1.3.0, 0.2.0.0, 0.2.0.1, 0.2.1.0, 0.3.0.0, 0.3.0.1, base16-lens
License
BSD-3-Clause
Install
cabal install base16-1.0

Documentation

Base16

Build Status Hackage

RFC 4648-compliant Base16 encoding and decoding.

For the companion optics and pattern synonyms, see base16-lens.

Summary

The following types have supported codecs:

  • Data.ByteString
  • Data.ByteString.Lazy
  • Data.ByteString.Short
  • Data.Text
  • Data.Text.Lazy
  • Data.Text.Short

Additionally this library has

  • Much better performance than base16-bytestring for encode and decode, with a more conventional api.
  • Support for mixed-case hex decoding (defaults to lower-case encoding by convention)
  • Optics for handling more complex structures with Base16 representations via the base16-lens package
  • Checks for both validity and correctness of Base16 encodings.

There are no dependencies aside from those bundled with GHC.