basen-bytestring

[ base16, base32, base64, bsd3, library, rfc4648, unclassified ] [ Propose Tags ] [ Report a vulnerability ]

Base-N ByteStrings for base{16,32,58,64}


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), bytestring [details]
License BSD-3-Clause
Copyright 2018 William Fisher
Author William Fisher
Maintainer williamsykesfisher@gmail.com
Home page https://github.com/FilWisher/basen-bytestring#readme
Bug tracker https://github.com/FilWisher/basen-bytestring/issues
Source repo head: git clone https://github.com/FilWisher/basen-bytestring
Uploaded by filwisher at 2018-03-29T12:27:56Z
Distributions NixOS:0.1.0.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1335 total (11 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-03-29 [all 1 reports]

Readme for basen-bytestring-0.1.0.1

[back to package description]

basen-bytestring

RFC-4648 compliant base-n ByteStrings for the common cases:

Data.ByteString.Base16
Data.ByteString.Base32
Data.ByteString.Base64

All with the same API:

module Data.ByteString.BaseN where

import qualified Data.ByteString.Char8 as B8

encode         :: B8.ByteString -> B8.ByteString
decode         :: B8.ByteString -> B8.ByteString

encodeAlphabet :: Enc -> B8.ByteString -> B8.ByteString
decodeAlphabet :: Enc -> B8.ByteString -> B8.ByteString

Currently Data.ByteString.Base58 is not implemented although it is on the roadmap.

The core Data.ByteString.BaseN contains all the common utilities for packing bytes, processing ByteStrings, creating encodings, and encoding/decoding single bytes.