This commit is contained in:
wenyifan
2022-09-06 14:13:48 +08:00
parent f426b7b2cc
commit 0a7d7dd290
4 changed files with 128 additions and 38 deletions

View File

@ -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))
}