mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-19 20:40:26 +08:00
优化代码
This commit is contained in:
14
internal/utils/encrypt/magic_key_test.go
Normal file
14
internal/utils/encrypt/magic_key_test.go
Normal 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))
|
||||
}
|
||||
Reference in New Issue
Block a user