- Sign
- Verify
optional, use default value 1234567812345678 when empty
optional, use default value 1234567812345678 when empty
Related Tools
Online SM2 signature and verification tool, supporting signature generation and verification functions for SM2 algorithms.
Online SM2 signature and verification tool, using private keys to sign input data and public keys to verify signed data.
- Sign : Use a private key to sign the input content data.
- Verify : Use the public key to verify whether the signature result corresponds to the input content.
- Input Content : Input the raw content to be signed or verified.
- Open Input Content : Open a local file with its contents as input. The file content format is determined by the input format. When the input format is string, only UTF-8 encoded text files can be opened.
- Private Key : Input the private key of SM2 algorithm, which supports hex or pem format. The private key is encoded as PKCS#8.
- Hash : Select the hash algorithm used for SM2 signature or verification. This tool supports the following hash algorithms: MD2, MD4, MD5, SHA1, SHA224, SHA256, SHA384, SHA512, SHA3-224, SHA3-256, SHA3-384, SHA3-512, SM3 . It is recommended to use the SM3 hash algorithm to be compatible with national encryption standards.
- Key Format : Select the format of the private or public key. This tool supports keys in hex and pem formats.
- In-Format : Input format, select the format of the input content. This tool supports input formats such as string, hex, and base64. When the input format is string, the character set parameter needs to be selected.
- Public Key : Input the public key of SM2 algorithm, which supports hex or pem format. The public key is encoded as X.509.
- Signature Result : Input the signature result generated by using the private key to sign the input content.
- Sign Format : The format of the signature result, this tool supports hex and base64 signature formats.
- ID Format : Select the format of the user ID, supporting string, hex, and base64.
- ID : In the State Secrets SM2 algorithm, the user ID parameter (referred to as ID) used for signing is a key identifier used to bind the signer's identity and participate in generating the user's identity hash value. User ID length <=64 bytes. If no user ID is filled in, the default value of 1234567812345678 will be used.
- This tool has a certain frequency limit, please use this tool reasonably. Anonymous : 30/IP*Hour, Normal user : 30/Hour, VIP : 720/Hour, Senior VIP : 720/Hour.