Codec.Binary.Base64Url

sandi-0.5: Data encoding library

Copyright | (c) 2012 Magnus Therning
License | BSD3
Safe Haskell | None
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) #

b64uEncodeFinal :: ByteString -> Maybe ByteString #

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

b64uDecodeFinal :: ByteString -> Maybe ByteString #

encode :: ByteString -> ByteString #

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