摘要:
生成随机数: 点击查看代码 openssl rand -hex 16 进行sm4加密: 点击查看代码 openssl enc -sm4-cbc -in 20211102sn.txt -out sn.enc -K $(xxd -p -c 64 key.bin) -iv $(xxd -p -c 64 i 阅读全文
posted @ 2023-10-19 13:52
尹子扬
阅读(41)
评论(0)
推荐(0)
摘要:
点击查看代码 openssl dgst -sm3 -out sn.sm3 sn.txt 3.(用od打印时发现有\n换行符,所以在第4步时不加-n,否则会生成错误的hash值) 点击查看代码 od -t c -A n sn.sm3 4.(正确的是不带-n的hash值) 点击查看代码 echo "20 阅读全文
posted @ 2023-10-19 13:31
尹子扬
阅读(23)
评论(0)
推荐(0)