Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.AWS.CloudFront.SignedCookies.Encoding
- base64Encode :: ByteString -> Text
Documentation
base64Encode :: ByteString -> Text Source #
The base 64 encoding scheme used for AWS CloudFront signed cookies. We use this to encode both the policy and the signature.
Excerpts from Setting Signed Cookies Using a Custom Policy:
- Base64-encode the string using MIME base64 encoding. For more information, see Section 6.8, Base64 Content-Transfer-Encoding in RFC 2045, MIME (Multipurpose Internet Mail Extensions) Part One: Format of Internet Message Bodies.
Replace characters that are invalid in a URL query string with characters that are valid. The following table lists invalid and valid characters.
Replace these With these invalid characters valid characters ------------------ ---------------- + - (hyphen) = _ (underscore) / ~ (tilde)