SM2 Public/Private Key Generation, Signature, Encryption/Decryption
SM2 Tool Usage Guide

This tool provides an online service for the SM2 algorithm, supporting functions such as key generation, signing, verification, encryption, and decryption, making it convenient for users to quickly perform SM2-related operations.

Usage Instructions:

  • Key Generation You can generate a public-private key pair as needed by selecting the key data type (Hex or Base64) and download it for saving.
  • Encryption/Decryption Supports both new standard (C1C3C2) and old standard (C1C2C3) ciphertext data orders, you can choose encryption or decryption operations, and view the plaintext and ciphertext.
  • Signature Verification Supports SM3 Hash calculation, you can choose the signature result type (ASN1 or R+S) and perform signing or verification operations.
  • Public-Private Key Pair Verification You can verify whether the public-private key pair matches.
  • Public Key Export Supports exporting the public key from the private key, public key certificate, or CSR.
  • Public Key Compression You can compress the public key and restore it.

Security Guarantee:

  • This tool uses secure encryption technology to ensure user data security.
  • All operations are completed on the client side, user data will not be uploaded to the server.

Notes:

  • Please keep your private key safe, as leaking your private key will put your data at risk.
  • This tool is for learning and testing purposes only and should not be used in production environments.