sandi-0.5: Data encoding library

Copyright | (c) 2012 Magnus Therning
License | BSD3
Safe Haskell | Safe-Inferred
Language | Haskell2010

Codec.Binary.Base64Url

Description

Implemented as specified in RFC 4648 (http://tools.ietf.org/html/rfc4648).

The difference compared to vanilla Base64 encoding is just in two characters. In Base64 the characters `/+` are used, and in Base64Url they are replaced by `_-` respectively.

Please refer to Codec.Binary.Base64 for the details of all functions in this module.

# Documentation

b64uEncodePart :: ByteString -> (ByteString, ByteString) Source #

b64uEncodeFinal :: ByteString -> Maybe ByteString Source #

b64uDecodePart :: ByteString -> Either (ByteString, ByteString) (ByteString, ByteString) Source #

b64uDecodeFinal :: ByteString -> Maybe ByteString Source #

encode :: ByteString -> ByteString Source #

decode :: ByteString -> Either (ByteString, ByteString) ByteString Source #