// Pack returns the payload as encrypted string
Pack returns the payload as encrypted string
// Pack returns the payload as encrypted string
func (cs *ChaChaStream) Pack(payload []byte) string {
	data := make([]byte, len(payload))
	cs.cipher.XORKeyStream(data, payload)
	str := base64.StdEncoding.EncodeToString(data)
	return str
}
func ( cs * ChaChaStream ) Pack ( payload [ ] byte ) string { data := make ( [ ] byte , len ( payload ) ) cs . cipher . XORKeyStream ( data , payload ) str := base64 . StdEncoding . EncodeToString ( data ) return str }
Pack returns the payload as encrypted string
Pack returns the payload as encrypted string