上QQ阅读APP看书,第一时间看更新
Hashing files and data streams
Recipe Difficulty: Easy
Python Version: 2.7 or 3.5
Operating System: Any
File hashes are a widely accepted identifier for determining file integrity and authenticity. While some algorithms have become vulnerable to collision attacks, the process is still important in the field. In this recipe, we will cover the process of hashing a string of characters and a stream of file content.