Codificar Base64url
base64url-encodeCodifica en Base64 URL-safe (RFC 4648 §5, sin relleno), como en JWT. Cuándo: hay que convertir bytes o texto a esta codificación, o desde ella, con exactitud y sin adivinar. No para: decodificar Base64 URL-safe a texto UTF-8 o hex (base64url-decode). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Encodes text or hex bytes as URL-safe Base64 (RFC 4648 §5: - and _ alphabet, no padding), as used in JWTs. When: bytes or text have to be converted to or from this encoding exactly, without guessing. Not for: decoding URL-safe Base64 (base64url-decode). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Input text (string; required). | |
| input_encoding | No | Encoding of data (optional; one of: utf8, hex; default "utf8"). | utf8 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64url | No |