mirror of
https://github.com/simplex-chat/base64.git
synced 2025-11-08 03:50:01 +00:00
RFC 4648-compliant Base64
| .github/workflows | ||
| benchmarks | ||
| src/Data | ||
| test | ||
| .gitignore | ||
| base64.cabal | ||
| cabal.project | ||
| cabal.project.local | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| default.nix | ||
| LICENSE | ||
| MIGRATION-1.0.md | ||
| README.md | ||
| Setup.hs | ||
Base64
Base64 encoding and decodings.
For the companion optics and pattern synonyms, see base64-lens.
Summary
The following types are supported for both std, padded url-safe, and unpadded url-safe alphabets:
Data.ByteStringData.ByteString.LazyData.ByteString.ShortData.TextData.Text.LazyData.Text.Short
Additionally this library has
- Better performance than
base64-bytestringfor encode and decode. - Optics for handling more complex structures with Base64 representations via the
base64-lenspackage - Checks for both validity and correctness of Base64 and Base64url encodings
- Rejects non-canonical encodings that do not roundtrip in other base64 libraries like
ZE==.
There are no dependencies aside from those bundled with GHC, text-short, and the ghc-byteorder re-export.