update
This commit is contained in:
@ -23,6 +23,14 @@ func TestName(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestName2(t *testing.T) {
|
||||
v := "12345678"
|
||||
fmt.Println(v[2:2])
|
||||
b := []byte("ABC")
|
||||
encrypt, err := AesEncrypt(b, []byte("1234567812345678"))
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
decrypt, err := AesDecrypt(encrypt, []byte("1234567812345678"))
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
fmt.Println(string(decrypt))
|
||||
}
|
||||
|
Reference in New Issue
Block a user