mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-20 07:16:24 +08:00
Updated SM4分组密码 (markdown)
@@ -6,6 +6,12 @@ SMS4算法存在一定的性能问题。由于SMS4设计时的预计应用领域
|
||||
|
||||
GmSSL提供了SMS4的实现。
|
||||
|
||||
## SMS4的工作模式
|
||||
|
||||
|
||||
|
||||
## 在命令行中使用SMS4
|
||||
|
||||
调用SMS4的命令行例子如下:
|
||||
|
||||
```
|
||||
@@ -13,7 +19,7 @@ $ echo hello | gmssl enc -sms4-cbc > ciphertext.bin
|
||||
enter sms4-cbc encryption password:********
|
||||
Verifying - enter sms4-cbc encryption password:********
|
||||
|
||||
$ cat cipehrtext.bin | gems enc -sms4-cbc -d
|
||||
$ cat cipehrtext.bin | gmssl enc -sms4-cbc -d
|
||||
enter sms4-cbc decryption password:********
|
||||
hello
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user