gmssl
Crypto toolkit supporting SM1, SM2, SM3, SM4, SM9, and ZUC/ZUC256. tldr-pages
On several platforms
Several platforms
Generate an SM3 hash for a file
gmssl sm3 path/to/fileIdentifyEncrypt a file using the SM4 cipher
gmssl sms4 -e -in path/to/file -out path/to/file.sms4IdentifyDecrypt a file using the SM4 cipher
gmssl sms4 -d -in path/to/file.sms4IdentifyGenerate an SM2 private key
gmssl sm2 -genkey -out path/to/file.pemIdentifyGenerate an SM2 public key from an existing private key
gmssl sm2 -pubout -in path/to/file.pem -out path/to/file.pem.pubIdentifyEncrypt a file using the ZUC cipher
gmssl zuc -e -in path/to/file -out path/to/file.zucIdentifyDecrypt a file using the ZUC cipher
gmssl zuc -d -in path/to/file.zucIdentifyDisplay version
gmssl versionIdentify