Skip to content

Latest commit

 

History

History
54 lines (24 loc) · 1.11 KB

base64.md

File metadata and controls

54 lines (24 loc) · 1.11 KB

Module 0x2::base64

Module which defines base64 functions.

Constants

const E_DECODE_FAILED: u64 = 1;

Function encode

@param input: bytes to be encoded Encode the input bytes with Base64 algorithm and returns an encoded base64 string

public fun encode(input: &vector<u8>): vector<u8>

Function decode

@param encoded_input: encoded base64 string Decode the base64 string and returns the original bytes

public fun decode(encoded_input: &vector<u8>): vector<u8>