查看获取文件信息摘要 (命令行 power Shell)
// 消息摘要算法(Message Digest)
certutil -hashfile test001.txt SHA1
ls -recurse -file | Get-FileHash | Format-List
https://blog.csdn.net/sxzlc/article/details/104689155
■前言
相比较两次生产的jar包是否完全一样
方法1:使用信息摘要
方法2:使用WinMerage
■查看各种信息摘要
certutil -hashfile test001.txt MD5
certutil -hashfile test001.txt SHA1
certutil -hashfile test001.txt SHA256
■Hash算法
MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512
■帮助文档查看
certutil -hashfile /?
certutil /?
■扩展 power Shell 中
ls .\ -recurse -file | Get-FileHash | Format-List
-----
■命令行窗口显示效果
■更多用法
Get-FileHash .\yourFileName -Algorithm SHA256 | Format-List
ls .\ -recurse -file | Get-FileHash -Algorithm MD5 | Format-List
SHA1
SHA256
SHA384
SHA512
MD5
■更多帮助