Examples (8)
Generate an SM3 hash for a file
gmssl sm3 path/to/fileEncrypt a file using the SM4 cipher
gmssl sms4 -e -in path/to/file -out path/to/file.sms4Decrypt a file using the SM4 cipher
gmssl sms4 -d -in path/to/file.sms4Generate an SM2 private key
gmssl sm2 -genkey -out path/to/file.pemGenerate an SM2 public key from an existing private key
gmssl sm2 -pubout -in path/to/file.pem -out path/to/file.pem.pubEncrypt a file using the ZUC cipher
gmssl zuc -e -in path/to/file -out path/to/file.zucDecrypt a file using the ZUC cipher
gmssl zuc -d -in path/to/file.zucDisplay version
gmssl versionmade by @shridhargupta | data from tldr-pages