mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-02 22:10:26 +08:00
12 lines
208 B
Go
12 lines
208 B
Go
package encrypt
|
|
|
|
import "testing"
|
|
|
|
func TestMagicKeyEncode(t *testing.T) {
|
|
dst := MagicKeyEncode([]byte("Hello,World"))
|
|
t.Log("dst:", string(dst))
|
|
|
|
src := MagicKeyDecode(dst)
|
|
t.Log("src:", string(src))
|
|
}
|