JuneAndGreen / sm-crypto

国密算法js版
MIT License
894 stars 245 forks source link

sm4 #69

Closed peachapp closed 2 years ago

peachapp commented 2 years ago

sm4.encrypt(msg, key) 这是哪种模式啊

changhr2013 commented 2 years ago

默认走 ECB/Pkcs7Padding 模式

peachapp commented 2 years ago

默认走 ECB/Pkcs7Padding 模式 好谢谢,这个用的是utf-8吗

changhr2013 commented 2 years ago

@peachapp 入参统一编成 hex 格式,按 readme 的说明来。

JuneAndGreen commented 2 years ago
image

默认 ecb,可选 cbc