Namespace: z85

sjcl.codec.z85

Z85 encoding/decoding http://rfc.zeromq.org/spec:32/Z85/
Source:

Methods

(static) fromBits(arr) → {string}

Method to convert a bitArray to a Z85-encoded string. The bits represented by the array MUST be multiples of 4 bytes.

Parameters:
Name Type Description
arr bitArray The input bitArray.
Source:
Returns:
The Z85-encoded string.
Type
string

(static) toBits(str) → {bitArray}

Method to convert a Z85-encoded string to a bitArray. The length of the string MUST be a multiple of 5 (else it is not a valid Z85 string).

Parameters:
Name Type Description
str string A valid Z85-encoded string.
Source:
Returns:
The decoded data represented as a bitArray.
Type
bitArray