mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-06 18:10:26 +08:00
15 lines
295 B
Go
15 lines
295 B
Go
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))
|
|
}
|