(key []byte)
| 42 | } |
| 43 | |
| 44 | func generateKey(key []byte) (genKey []byte) { |
| 45 | genKey = make([]byte, 16) |
| 46 | copy(genKey, key) |
| 47 | for i := 16; i < len(key); { |
| 48 | for j := 0; j < 16 && i < len(key); j, i = j+1, i+1 { |
| 49 | genKey[j] ^= key[i] |
| 50 | } |
| 51 | } |
| 52 | return genKey |
| 53 | } |
| 54 | |
| 55 | func Encodestr(str string, uuid string) string { |
| 56 | uuidnew := uuid[len(uuid)-16:] |
no outgoing calls
no test coverage detected