method base64.encodeUrl
URL-safe Base64 without padding.
Example:
use std.crypto { base64 }
use std.ser { bytesOf }
fn main() io {
print(base64.encodeUrl(bytesOf(&"hello")))
}Output
aGVsbG8
pub(api) static fn encodeUrl(input: bytes) -> strSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
input | bytes |
Returns
str
Effects
none declared (pure unless the body says otherwise)
Defined in: std/crypto/crypto.oxl:367