SM2 Algorithm Encryption and Decryption sample

generating SM2 keypair, SM2 Algorithm Encryption and Decryption

Home | SM2 sample | SM2 Cert Verifcation | SM2 Encryption and Decryption sample

AES 加密 CBC Pkcs7



aes key:
aes iv:

(Step2)AES Crypt message


Message aes string to be Crypted:

Crypt value:

(Step3) Decrypt message

deCrypt value:

(Step1) choose supported EC curve name and generate key pair

ECC curve name:

EC private key (hex):
EC public key (hex):

(Step2) Crypt message

Crypt Options:
Message string to be Crypted:

Crypt value (hex):

(Step3) Decrypt message

Decrypt message:

SM2 Certificate Encryption

SM2证书加密