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")))
}Вывод
aGVsbG8
pub(api) static fn encodeUrl(input: bytes) -> strС версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
input | bytes |
Возвращает
str
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/crypto/crypto.oxl:367