优化代码

This commit is contained in:
GoEdgeLab
2024-05-11 09:23:54 +08:00
parent af44f06e75
commit cb7f156ed8
116 changed files with 175 additions and 161 deletions

View File

@@ -0,0 +1,14 @@
package encrypt_test
import (
"github.com/TeaOSLab/EdgeNode/internal/utils/encrypt"
"testing"
)
func TestMagicKeyEncode(t *testing.T) {
var dst = encrypt.MagicKeyEncode([]byte("Hello,World"))
t.Log("dst:", string(dst))
var src = encrypt.MagicKeyDecode(dst)
t.Log("src:", string(src))
}