// Pack returns the payload as encrypted string
Pack returns the payload as encrypted string
// Pack returns the payload as encrypted string
func (s *SalsaStream) Pack(payload []byte) string {
	var data []byte
	salsaBytes := s.fetchBytes(len(payload))
	for i := 0; i < len(payload); i++ {
		data = append(data, salsaBytes[i]^payload[i])
	}
	lockedPassword := base64.StdEncoding.EncodeToString(data)
	return lockedPassword
}
func ( s * SalsaStream ) Pack ( payload [ ] byte ) string { var data [ ] byte salsaBytes := s . fetchBytes ( len ( payload ) ) for i := 0 ; i < len ( payload ) ; i ++ { data = append ( data , salsaBytes [ i ] ^ payload [ i ] ) } lockedPassword := base64 . StdEncoding . EncodeToString ( data ) return lockedPassword }
Pack returns the payload as encrypted string
Pack returns the payload as encrypted string