准备工作 查看OpenSSL版本 openssl version 创建测试文件 touch msg.txt 输入内容 echo 123 msg.txt 生成摘要(哈希) MD5摘要 openssl dgst -md5 msg.txt - sha1摘要 `openssl dgst -sha1 msg.txt sha256摘要 openssl dgst -sha1 msg.txt 加密 查看加密算法 openssl enc -help