Files
EdgeNode/internal/utils/encrypt/magic_key_test.go
GoEdgeLab c19be78e0d v1.4.1
2024-07-27 15:42:50 +08:00

16 lines
296 B
Go

package encrypt_test
import (
"testing"
"github.com/TeaOSLab/EdgeNode/internal/utils/encrypt"
)
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))
}