method base64.encode
Base64 with padding.
Example:
use std.crypto { base64 }
use std.ser { bytesOf }
fn main() io {
print(base64.encode(bytesOf(&"hello")))
}Output
aGVsbG8=
pub(api) static fn encode(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:352