// Unpack returns the payload as unencrypted byte array
Unpack returns the payload as unencrypted byte array
// Unpack returns the payload as unencrypted byte array
func (cs *ChaChaStream) Unpack(payload string) []byte {
	decoded, _ := base64.StdEncoding.DecodeString(payload)
	data := make([]byte, len(decoded))
	cs.cipher.XORKeyStream(data, decoded)
	return data
}
func ( cs * ChaChaStream ) Unpack ( payload string ) [ ] byte { decoded , _ := base64 . StdEncoding . DecodeString ( payload ) data := make ( [ ] byte , len ( decoded ) ) cs . cipher . XORKeyStream ( data , decoded ) return data }
Unpack returns the payload as unencrypted byte array
Unpack returns the payload as unencrypted byte array