sm2加密解密
<?xml version="1.0" encoding="utf-8"?> <packages> <package id="SM23Crypto" version="1.0.0" targetFramework="net48" /> </packages>
string smKey = "04851D329AA3E38C2E7670AFE70E6E70E92F8769CA27C8766B12209A0FFBA4493B603EF7A0B9B1E16F0E8930C0406EA0B179B68DF28E25334BDEC4AE76D907E9E9"; string privateKey = "3A61D1D30C6302DABFF36201D936D0143EEF0C850AF28C5CA6D5C045AF8C5C8A"; this.txtLog.Text = SM23Crypto.SM2.DoEncrypt("13736969112", smKey); this.textBox1.Text = SM23Crypto.SM2.DoDecrypt(this.txtLog.Text, privateKey).ToString();