Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (24 loc) · 1.85 KB

File metadata and controls

32 lines (24 loc) · 1.85 KB

docs » hs.base64


Base64 encoding and decoding

Portions sourced from (https://gist.github.com/shpakovski/1902994).

API Overview

  • Functions - API calls offered directly by the extension
  • decode
  • encode

API Documentation

Functions

Signature hs.base64.decode(str) -> val
Type Function
Description Decodes a given base64 string
Parameters
  • str - A base64 encoded string
Returns
  • A string containing the decoded data
Signature hs.base64.encode(val[,width]) -> str
Type Function
Description Encodes a given string to base64
Parameters
  • val - A string to encode as base64
  • width - Optional line width to split the string into (usually 64 or 76)
Returns
  • A string containing the base64 representation of the input string