Files
EdgeAdmin/internal/encrypt/magic_key_test.go

12 lines
208 B
Go
Raw Permalink Normal View History

2020-07-22 22:19:39 +08:00
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))
}