Discover Packages
github.com/scode/saltybox
varmor
package
Version:
v1.5.1
Opens a new window with list of versions in this module.
Published: May 29, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package varmor provides versioned armoring for arbitrary sequences of bytes.
The armored form is free of whitespace (including newlines), safe to embed in URLs (other than possibly
its length) and safe to pass unescaped in a POSIX shell.
Unwrap an armored string.
Errors conditions include:
The input is provably truncated.
Base64 decoding failure.
Input indicates a future version of of the format that we do not support.
Input does not appear to be the the result of Wrap().
Wrap an array of bytes in armor, returning the resulting string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.