如何使用SM4密钥实现安全加解密

以下使用gmssl进行

加密

gmssl sm4 -gcm -key yoursm4key -iv youriv -encrypt -in plaintext.txt > ciphertext.bin

解密


gmssl sm4 -gcm -key yoursm4key -iv youriv -decrypt -in ciphertext.bin
people found this article helpful. What about you?
发表回复 0

Your email address will not be published. Required fields are marked *