加密算法在windows下的检测办法[md5,sha1]

使用办法:cmd命令行下输入相应命令;

windows文件加密算法的监测办法:

1.检测“C:\xxx.tar ”的md5的值的计算方法

CertUtil -hashfile C:\xxx.tar MD5

2.支持其他命令的方式
此命令不仅可以做MD5哈希算法校验,还支持其他的哈希算法,具体如下:

CertUtil -hashfile 文件路径 [算法]

支持的算法有:MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

示例:

1.sha1算法

D:\1>certutil -hashfile 3.jpg sha1
SHA1 的 3.jpg 哈希:
70f956bcd7ea6bb7e1f2d65dffa27e496e4b49da
CertUtil: -hashfile 命令成功完成。

D:\1>

2.sha256

D:\1>certutil -hashfile 3.jpg sha256
SHA256 的 3.jpg 哈希:
50ec841241938579996d89e75e9a53753bd54d463730d1a64b173914eb5fda3f
CertUtil: -hashfile 命令成功完成。

D:\1>

3.md2


D:\1>certutil -hashfile 3.jpg md2
MD2 的 3.jpg 哈希:
18c221b968ae20ecabeadab4a5cf43bf
CertUtil: -hashfile 命令成功完成。

D:\1>

4.md5

D:\1>certutil -hashfile 3.jpg md5
MD5 的 3.jpg 哈希:
6628ee4429d3ce62a76969ff2a1fa4af
CertUtil: -hashfile 命令成功完成。

D:\1>

猜你喜欢

转载自blog.csdn.net/wtt234/article/details/113988573