This module implements a base64 encoder and decoder.
Procs
proc encode[T](s: openArray[T]; lineLen = 75; newLine = "\x0D\x0A"): string
- encodes s into base64 representation. After lineLen characters, a newline is added. Source
proc encode(s: string; lineLen = 75; newLine = "\x0D\x0A"): string {.raises: [], tags: [].}
- encodes s into base64 representation. After lineLen characters, a newline is added. Source
proc decode(s: string): string {.raises: [], tags: [].}
- decodes a string in base64 representation back into its original form. Whitespace is skipped. Source