Files
EdgeNode/internal/utils/encrypt/magic_key_test.go

15 lines
295 B
Go
Raw Normal View History

2024-05-11 09:23:54 +08:00
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))
}