(str string, uuid string)
| 53 | } |
| 54 | |
| 55 | func Encodestr(str string, uuid string) string { |
| 56 | uuidnew := uuid[len(uuid)-16:] |
| 57 | //fmt.Println(uuidnew) |
| 58 | msgstr := []byte(str) |
| 59 | key := []byte(uuidnew) |
| 60 | //fmt.Println(uuidnew) |
| 61 | a := AESEncrypt(msgstr, key) |
| 62 | |
| 63 | b := hex.EncodeToString(a) |
| 64 | return b |
| 65 | } |
| 66 | func Decodestr(str string, uuid string) string { |
| 67 | //fmt.Println("hex:", str) |
| 68 | a, _ := hex.DecodeString(str) |
nothing calls this directly
no test coverage detected