Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(s *SplitTally, t Tally) error
Decode is the reverse of Encode that joins and decrypts the two separate pieces of data into the original object.
Types ¶
type SplitTally ¶
SplitTally represents the split data to be stored separately.
func Encode ¶
func Encode(t Tally) (*SplitTally, error)
Encode encrypts the object's json with a random key and splits its base64 encoding into two parts for keeping separately.
Click to show internal directories.
Click to hide internal directories.