This commit is contained in:
Mrx
2026-06-04 18:04:04 +08:00
parent 7506ee718b
commit 932f2773d4

View File

@@ -19,7 +19,7 @@ func TestAesEcbMobileEncryption(t *testing.T) {
t.Fatalf("手机号加密失败: %v", err) t.Fatalf("手机号加密失败: %v", err)
} }
fmt.Printf("encrypted: %s\n", encrypted) fmt.Printf("encrypted: %s\n", encrypted)
jmStr := "m9EEeW9ZBBJmi1hx1k1uIQ==" jmStr := "K5yWNF5Icr74YRSklq33nw=="
// 测试解密 // 测试解密
decrypted, err := DecryptMobile(jmStr, keyStr) decrypted, err := DecryptMobile(jmStr, keyStr)
if err != nil { if err != nil {