<span style="font-size:18px;">SHA1叫安全哈希算法 <span style="color:#333333;font: 14px/24px arial, 宋体, sans-serif; text-transform: none; text-indent: 28px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;">Secure Hash Algorithm</span>,跟MD5类似</span>
<span style="font-size:18px;">生成的摘要信息为160位</span>
<span style="font-size:18px;">代码摘抄自openssl库的sha1调用,编译方法为gcc -o testsha1 main.c -lcrypto,使用方法为 ./testsha1 文件名</span>
#include <stdio.h>
#include <stdlib.h>
#include <openssl/sha.h>
#d