github.com/TeaOSLab/EdgeNode@v1.3.8/internal/encrypt/magic_key_test.go (about)

     1  package encrypt
     2  
     3  import "testing"
     4  
     5  func TestMagicKeyEncode(t *testing.T) {
     6  	dst := MagicKeyEncode([]byte("Hello,World"))
     7  	t.Log("dst:", string(dst))
     8  
     9  	src := MagicKeyDecode(dst)
    10  	t.Log("src:", string(src))
    11  }