toBase64

Extension to encode a ByteArray to a base64 encoding (not URL-safe base64) without padding as defined in Section 4 of RFC 4648.