<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pedromussato.com/index.php?action=history&amp;feed=atom&amp;title=Sha_sum_files_with_Python</id>
	<title>Sha sum files with Python - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pedromussato.com/index.php?action=history&amp;feed=atom&amp;title=Sha_sum_files_with_Python"/>
	<link rel="alternate" type="text/html" href="https://wiki.pedromussato.com/index.php?title=Sha_sum_files_with_Python&amp;action=history"/>
	<updated>2026-04-14T09:53:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.pedromussato.com/index.php?title=Sha_sum_files_with_Python&amp;diff=180&amp;oldid=prev</id>
		<title>413vhcu1lq0463ob: Created page with &quot; import hashlib    def calculate_sha256(file_path):      sha256_hash = hashlib.sha256()      with open(file_path, &quot;rb&quot;) as f:          # Read and update hash string value in chunks of 4K          for byte_block in iter(lambda: f.read(4096), b&quot;&quot;):              sha256_hash.update(byte_block)      return sha256_hash.hexdigest()    # Usage  file_path = &quot;path/to/your/file&quot;  print(&quot;SHA-256:&quot;, calculate_sha256(file_path))&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.pedromussato.com/index.php?title=Sha_sum_files_with_Python&amp;diff=180&amp;oldid=prev"/>
		<updated>2024-11-08T02:48:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; import hashlib    def calculate_sha256(file_path):      sha256_hash = hashlib.sha256()      with open(file_path, &amp;quot;rb&amp;quot;) as f:          # Read and update hash string value in chunks of 4K          for byte_block in iter(lambda: f.read(4096), b&amp;quot;&amp;quot;):              sha256_hash.update(byte_block)      return sha256_hash.hexdigest()    # Usage  file_path = &amp;quot;path/to/your/file&amp;quot;  print(&amp;quot;SHA-256:&amp;quot;, calculate_sha256(file_path))&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; import hashlib&lt;br /&gt;
 &lt;br /&gt;
 def calculate_sha256(file_path):&lt;br /&gt;
     sha256_hash = hashlib.sha256()&lt;br /&gt;
     with open(file_path, &amp;quot;rb&amp;quot;) as f:&lt;br /&gt;
         # Read and update hash string value in chunks of 4K&lt;br /&gt;
         for byte_block in iter(lambda: f.read(4096), b&amp;quot;&amp;quot;):&lt;br /&gt;
             sha256_hash.update(byte_block)&lt;br /&gt;
     return sha256_hash.hexdigest()&lt;br /&gt;
 &lt;br /&gt;
 # Usage&lt;br /&gt;
 file_path = &amp;quot;path/to/your/file&amp;quot;&lt;br /&gt;
 print(&amp;quot;SHA-256:&amp;quot;, calculate_sha256(file_path))&lt;/div&gt;</summary>
		<author><name>413vhcu1lq0463ob</name></author>
	</entry>
</feed>