如何将 Windows 文件夹内每个文件的哈希值 (SHA-256 和 MD5) 导出为 CSV?
我从客户端接收文件,即使在处理这些文件之后,我也需要确保这些文件是健康的。 我要提防的是可能篡改已处理文件的情况。 发送缺少信息的文件时可能会发生客户错误,并且客户想要编辑原始文件以表明该信息存在。 这就是为什么我想到用接收目录中这些文件的哈希值生成一份报告。 尽管我不会说英语,但我努力让一切变得更加清晰易懂。
场景 1: 我有一个包含多个文本文件的目录,我需要将每个文件中的 SHA-256 和 MD5 哈希计算导出到某个位置的 CSV。
场景 2: 我有一个目录,其中包含几个带有客户名称的子文件夹,以及这些客户中的其他子文件夹。如何提取 SHA-256 和 SHA-256这些目录和子目录中所有文件的 MD5 哈希值?
I receive files from the client and I need to make sure those files are healthy even after I process these files.
What I want to beware of is a situation of possible tampering with already processed files.
A customer error may occur for sending files with missing information and the customer wants to edit the original file to say the information was there.
That's why I had the idea of producing a report with the hash of these files that are in the reception directory.
I tried hard to make everything clearer and more intelligible, even though I didn't speak English.
Scene 1:
I have a directory with several text files and I need to export the SHA-256 and MD5 hash calculations from each file to a CSV somewhere.
Scene 2:
I have a directory with several subfolders with customer names and within these customers, other subfolders. How to extract SHA-256 & MD5 Hash from all files in these directories and subdirectories?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
类似下面的内容应该可以帮助您开始。这会找到当前目录(不包括子目录)内每个文件的 SHA256 哈希值
如果您确实需要 SHA256 和 MD5:
Something like the following should get you started. This finds the SHA256 hash for every file inside the current directory (not including subdirectories)
If you really need both SHA256 and MD5: