How to get the MD5 checksum for a file: md5sum, digest, csum, fciv
LINUX: md5sum fileName
In Linux, the md5sum utility can be used:
aemtux1:/ % md5sum binary.file
0c4627e70d168f7f78257e6dd01fdb60 binary.file
This utility is provided by the following rpm package (the package name
is the key element, because the version number depends on your Linux
installation)
% rpm -qf /usr/bin/md5sum
coreutils-5.2.1-23.13
AIX: csum -h MD5 fileName
In AIX, there is no native "md5sum" but the MD5 hash function is
provided by csum (provided and supported in AIX 5.3 and later):
csum -h MD5
aemaix1:/ % csum -h MD5 binary.file
0c4627e70d168f7f78257e6dd01fdb60 binary.file
Note: You may need to apply fixes to AIX for csum to handle files larger than 2 GB. For example:
IV03170: csum to support files more than 2GB APPLIES TO AIX 6100-07
Solaris: digest -a md5 -v fileName
In Solaris there is no native "md5sum", but "digest" can be used:
aemsun4:/ % digest -a md5 -v binary.file
md5 (binary.file) = 0c4627e70d168f7f78257e6dd01fdb60
HP-UX: md5sum fileName
HP-UX MD5 Secure Checksum
Product details & specifications
Overview
The HP-UX MD5 Secure Checksum A.01.01.02 bundle (bundle name
MD5Checksum) provides a file integrity utility and API based on the
standard Message Digest 5 (MD5) algorithm. The MD5Checksum bundle
consists of the following two components that can be installed
independently:
- HP-UX MD5sum (md5sum checksum command)
- HP-UX LibCryptX (libcryptx libraries providing MD5 APIs)
The md5sum command is based on the MD5 algorithm and generates 128-bit
message digests. The md5sum command enables you to verify the integrity
of files downloaded over a network connection. You can also use the
md5sum command to compare files and verify the integrity of files.
HP NonStop Server (NSS): md5sum fileName
In HP NonStop Server, the md5sum command is available in OSS.
Windows: md5sum fileName
fciv -md5 fileName
Microsoft does not offer a supported tool for generating the MD5 hash.
There are 2 choices:
a) The md5sum utility can be found within the following package of
useful utilities that were developed to mimic their corresponding peer
in Unix. The UnxUtils.zip and UnxUpdates.zip packages contain such
utilities. For details on the utilities that are provided in these
packages and download links see:
Example run:
H:\> md5sum binary.file
0c4627e70d168f7f78257e6dd01fdb60 *binary.file
b) Microsoft offers a NON-supported utility called "fciv":
Availability and description of the File Checksum Integrity Verifier utility
The File Checksum Integrity Verifier (FCIV) is a command-prompt utility
that computes and verifies cryptographic hash values of files. FCIV can
compute MD5 or SHA-1 cryptographic hash values. These values can be
displayed on the screen or saved in an XML file database for later use
and verification.
Example run:
H:\62570,379,000\2011-01-21> fciv -md5 binary.file
//
// File Checksum Integrity Verifier version 2.05.
//
0c4627e70d168f7f78257e6dd01fdb60 binary.file
Caveat:
During the writing of this technote, we found that the fciv utility
worked fine in some Windows systems but failed in other systems with the
following error. We could not find a way to overcome it. Thus, use this
unsupported tool at your own risk.
Error during CryptAcquireContext.
Error msg : An internal error occurred.
Related information
How to get the MD5 checksum for a file: md5sum, digest, csum, fciv的更多相关文章
- fatal: incorrect checksum in control file
在网上搜到 7. 修改pg_controlfile的checksum源码, 不check. vi src/backend/access/transam/xlog.c 注释checksum部分 ...
- error: openssl/md5.h: No such file or directory
出现:error: openssl/md5.h: No such file or directory 原因是openssl-devel没有安装,运行: yum install libssl-dev 就 ...
- Verifying Package Integrity Using MD5 Checksums or GnuPG
In this note, I reference the MySQL manual file. After downloading the MySQL package that suits your ...
- TensorRT&Sample&Python[yolov3_onnx]
本文是基于TensorRT 5.0.2基础上,关于其内部的yolov3_onnx例子的分析和介绍. 本例子展示一个完整的ONNX的pipline,在tensorrt 5.0的ONNX-TensorRT ...
- linux 命令中英文对照,收集
linux 命令中英文对照,收集 linux 命令英文全文 Is Linux CLI case-sensitive? The answer is, yes. If you try to run L ...
- NeoFinder for Mac(增强型文件管理工具)破解版安装
1.软件简介 NeoFinder 是 macOS 系统上一款帮助用户管理磁盘的 Mac 工具,NeoFinder for mac 能迅速组织您的数据,无论是在外部或内部磁盘,或任何其他卷.它能记 ...
- ansible组件 Ad-Hoc
ad hoc ---临时的,在ansible里需要快速执行,并不用保存命令的执行方式 简单命令 playbook 复杂命令 EXAMPLES: - name: install the late ...
- 2、摘要函数——MD2/MD4/MD5数字签名
摘要是用来防止数据被私自改动的方法,其中用到的函数叫做摘要函数.这些函数的输入可以是任意大小的信息,但是输出是大小固定的摘要.摘要有个重要的特性:如果改变了输入信息的任何内容,即使改变一位,输出也将发 ...
- md5 (c语言)
/** * \file md5.h * * \brief MD5 message digest algorithm (hash function) * * Copyright (C) 2006-201 ...
随机推荐
- MSSQL复制表操作
1:复制表结构及数据到新表 select * into 目的数据库名.dbo.目的表名 from 原表名 select * into my0735home.dbo.infoMianTest from ...
- 通过使用Netty实现RPC
目标:通过使用Netty框架实现RPC(远程过程调用协议),技术储备为以后实现分布式服务框架做技术储备.在这里实现自定义协议主要实现远程方法调用. 技术分析: 1.通过Java的反射技术我们可以获取对 ...
- 在Window工作区按下鼠标左键拖动窗体
Window.DragMove(): 允许使用在窗口工作区的暴露区域上方按下其鼠标左键的鼠标来拖动窗口.(窗口工作区:除去窗体的title.bottom后的剩余部分空间) 使用该方法时注意:一定要在鼠 ...
- Autolayout .Compact or .Regular [iPhone/iPad]
- 牛客比赛-Wannafly9-A/B/C
A-链接:https://www.nowcoder.com/acm/contest/71/A来源:牛客网 给定n个正整数,请找出其中有多少个数x满足:在这n个数中存在数y=kx,其中k为大于1的整数 ...
- 探索Javascript 异步编程
在我们日常编码中,需要异步的场景很多,比如读取文件内容.获取远程数据.发送数据到服务端等.因为浏览器环境里Javascript是单线程的,所以异步编程在前端领域尤为重要. 异步的概念 所谓异步,是指当 ...
- AAC解码算法原理详解
”
- poscms仿站知识点总结(一)
最近在做基于poscms系统的企业站仿站项目,这个系列用于总结项目中遇到的一些前端问题,至于poscms,待我摸透之后再总结... 进入正题吧,仿站,首先是用仿站小工具把要仿的模板站扒下来,有时候会出 ...
- Image Pyramid (二)
上一篇文章里,我们介绍了图像金字塔的基本原理,就是一种分层次的下采样.这篇文章里我们简单介绍一下图像金字塔的一种应用,image blending.利用图像金字塔做 image blending,可以 ...
- 数据库查询操作(fetchone,fetchall)
数据库查询操作 Python查询Mysql使用 fetchone() 方法获取单条数据, 使用fetchall() 方法获取多条数据. fetchone(): 该方法获取下一个查询结果集.结果集是一个 ...