014-操作系统下验证下载文件的 MD5/SHA1/SHA256
2024-10-20 07:57:28
一、mac
1、md5
openssl md5 /path/to/file
新的macOS默认支持:md5 filename
2、sha256
openssl dgst -sha256 /path/to/file
3、sha1
openssl sha1 /path/to/file
4、别名设置
不妨在 .bashrc 或者 / .zshrc 里加入一行alias sha256="openssl dgst -sha256"来实现通过sha256 /path/to/file校验 SHA256
二、Window命令如下
certutil -hashfile filename MD5
certutil -hashfile filename SHA1
certutil -hashfile filename SHA256
最新文章
- BestCoder Round #89 B题---Fxx and game(单调队列)
- 谈I/O模型
- Windows 下搭建 Ruby 开发环境
- spring 集成 log4j 配置
- POJ 1195 二维树状数组
- Codeforces Round #159 (Div. 2)
- Google Protocol Buffer 的使用和原理
- stuts-security.xml
- IT运维管理市场
- 查看Centos系统信息命令
- WEB前端介绍
- 转载:solr MoreLikeThis的原理分析
- IOS UIButton 自定义的补充学习
- 配置JDK和TOMCAT
- JavaNIO之Channel
- Redis技术分享
- opencv探索之路(一):win10 X64+VS2015+opencv3.10安装教程
- handlebars.js模版引擎随记
- ●UOJ 21 缩进优化
- windows下编写shell脚本执行错误
热门文章
- PHP 调用 exec 执行中文命令的坑
- linux加载字体
- 日志分析方法概述 &; Web日志挖掘分析的方法
- 原生JS发送Ajax请求、JSONP
- IdentityServer(二)客户端授权模式
- [2019HDU多校第一场][HDU 6580][C. Milk]
- 生日礼物 HYSBZ - 1293 【单调队列】【求最短区间的长度,区间需要满足包含所有颜色种类】
- Codeforces Round #583 (Div. 1 + Div. 2, based on Olympiad of Metropolises) C题
- Dynamic Data linq to SQL Web Application
- js中4种遍历语法比较