Base64UrlExtensions
Ecng.Net
Base64url (RFC 4648 §5) encoding — '-' '_' instead of '+' '/', no '=' padding. Used by JWT, OAuth / PKCE, WebPush and similar web payloads. The actual base64 step delegates to the existing Base64() string/byte[] extensions rather than calling Convert again.
Métodos
Base64Url
public static byte[] Base64Url(string value)
result = Base64UrlExtensions.Base64Url(value)
Decodes a base64url-encoded string to bytes.
- value
- The base64url-encoded string.
Retorna: The byte array representation.
Base64Url
public static string Base64Url(byte[] value)
result = Base64UrlExtensions.Base64Url(value)
Encodes a byte array to a base64url string (no '=' padding).
- value
- The byte array.
Retorna: The base64url-encoded string.