Skip to content

Latest commit

 

History

History
76 lines (41 loc) · 1.74 KB

onion_base64.md

File metadata and controls

76 lines (41 loc) · 1.74 KB

Module onion_base64

Base64 wrapper API.

Authors: Alexander Færøy (ahf@0x90.dk).

Description

This module contains a base64 API that allows us to encode and decode binaries without the ordinary Base64 padding.

Data Types


base64_encoded() = binary()

Function Index

decode/1
encode/1
valid/1Check if a given binary is valid Base64.

Function Details

decode/1


decode(Encoded) -> {ok, Decoded} | {error, Reason}

encode/1


encode(Data) -> Encoded

valid/1


valid(Data) -> boolean()
  • Data = binary() | string()

Check if a given binary is valid Base64.