<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Knowledge Base (Posts about checksum)</title><link>https://bgstack15.ddns.net/blog/</link><description></description><atom:link href="https://bgstack15.ddns.net/blog/categories/checksum.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2024 &lt;a href="mailto:bgstack15@gmail.com"&gt;bgstack15&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-SA"
style="border-width:0; margin-bottom:12px;"
src="https://bgstack15.ddns.net/.images/l_by-sa_4.0_88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Sat, 30 Mar 2024 13:15:29 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Savegame editor for Snoopy vs. the Red Baron</title><link>https://bgstack15.ddns.net/blog/posts/2024/03/30/savegame-editor-for-snoopy-vs-the-red-baron/</link><dc:creator>bgstack15</dc:creator><description>&lt;h2&gt;tl;dr&lt;/h2&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;./srb.py --profile 1 --unlock-everything --buy-everything "Profile 1.sav"
&lt;/pre&gt;&lt;/div&gt;

&lt;h2&gt;Article&lt;/h2&gt;
&lt;p&gt;Previous posts in this 3-part series:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://bgstack15.ddns.net/blog/posts/2024/03/22/initial-research-for-hacking-savegame-files-for-snoopy-vs-the-red-baron/"&gt;Initial research for hacking savegame files for Snoopy vs. the Red Baron&lt;/a&gt; (2024-03-22)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://bgstack15.ddns.net/blog/posts/2024/03/26/the-checksum-for-the-savegame-file-for-snoopy-vs-the-red-baron/"&gt;The checksum for the savegame file for Snoopy vs. the Red Baron&lt;/a&gt; (2024-03-26)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I have finished my Savegame Editor for Snoopy vs. the Red Baron! Go check out the &lt;a href="https://bgstack15.ddns.net/blog/cgit/srb_lib"&gt;source code&lt;/a&gt; now.&lt;/p&gt;
&lt;p&gt;This python tool lets you query, and set, values for the different user profiles in the savegame file. You can change the username, or give yourself a lot of money, or mark levels completed with rank "General," and so on.&lt;/p&gt;
&lt;p&gt;All of this is possible because of the checksum I learned in part 2.&lt;/p&gt;
&lt;p&gt;You can use my savegame editor to change a profile name:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;./srb.py --profile 1 --set-name "blogger" "Profile 1.sav"
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You can purchase any specific plane by name even if you don't have the letters for it. (Not terribly useful on PC, but still.)&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;./srb.py --profile 1 --add-purchased-plane "rerun" "Profile 1.sav"
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Reset balloons for a level.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;./srb.py --profile 1 --set-level-balloons 5,none "Profile 1.sav"
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You can read information too; you don't just have to set values.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;./srb.py --profile 2 --get-levelset 0 "Profile 1.sav"
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I would call this script as of the time of this writing as minimum viable product. It doesn't always respect debuglevel, or have a great layout of the output. But it does the bare minimum I wanted it to be able to do.&lt;/p&gt;
&lt;p&gt;Happy cheating at a kid's game! Contributions welcome.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://bgstack15.ddns.net/blog/2024/scrot-hexedit-for-fun-and-profit-srb.png"&gt;&lt;img alt="" src="https://bgstack15.ddns.net/blog/2024/scrot-hexedit-for-fun-and-profit-srb.png"&gt;&lt;/a&gt;&lt;/p&gt;</description><category>cheat</category><category>checksum</category><category>game</category><category>hexedit</category><guid>https://bgstack15.ddns.net/blog/posts/2024/03/30/savegame-editor-for-snoopy-vs-the-red-baron/</guid><pubDate>Sat, 30 Mar 2024 13:14:18 GMT</pubDate></item><item><title>The checksum for the savegame file for Snoopy vs. the Red Baron</title><link>https://bgstack15.ddns.net/blog/posts/2024/03/26/the-checksum-for-the-savegame-file-for-snoopy-vs-the-red-baron/</link><dc:creator>bgstack15</dc:creator><description>&lt;p&gt;This is part 2 of my research for hacking the savegame file to Snoopy vs. the Red Baron. See &lt;a href="https://bgstack15.ddns.net/blog/posts/2024/03/22/initial-research-for-hacking-savegame-files-for-snoopy-vs-the-red-baron/"&gt;part 1&lt;/a&gt; for more context.&lt;/p&gt;
&lt;p&gt;The program &lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/github.com/8051Enthusiast/delsum"&gt;delsum&lt;/a&gt; has a few commands. You can tell it to guess which checksum algorithm is used if you give it enough samples and the checksums.&lt;/p&gt;
&lt;p&gt;So I had to prepare the checksums.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;for word in ~/Documents/Snoopy\ vs.\ the\ Red\ Baron/Profile\ 1/*sav ; do printf '%s,' "$( xxd -p -l 4 "&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;word&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;" )" ; done &amp;gt; ~/checksums1
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Then given those existing checksums, use those same files (hopefully the shell globbing hasn't changed the order of those files in the past 8 seconds...):&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="o"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cd&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;~/&lt;/span&gt;&lt;span class="n"&gt;Documents&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Snoopy&lt;/span&gt;\&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;vs&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;\&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;\&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Red&lt;/span&gt;\&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Baron&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Profile&lt;/span&gt;\&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="o"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;~/&lt;/span&gt;&lt;span class="n"&gt;Downloads&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;delsum&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;reverse&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;extended&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;search&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'crc width=32 init=0'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;checksums&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"$( cat ~/foo1 | sed -r -e 's/,$//;' )"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;sav&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="n"&gt;crc&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;32&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;poly&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x4c11db7&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xorout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x235b4b9c&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;refin&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;false&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;refout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;false&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;out_endian&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;little&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;And that is the important part! It solved it. It took less than a second! It felt instantaneous. That's the magic information I hadn't been able to find after about 12 hours of research across the past 5 days.&lt;/p&gt;
&lt;p&gt;I spent some time in Ghidra looking for this polynomial, literal &lt;code&gt;0x41c1db7&lt;/code&gt; and I found it. I forget the offset, but it's in the binary. It was inside some dumb &lt;code&gt;FUN_01234982748()&lt;/code&gt; type function that returns void. So clearly decompiling has its limits.&lt;/p&gt;
&lt;p&gt;So, with this whole derived specification of a checksum, I hacked up &lt;code&gt;test1.sav&lt;/code&gt; by changing how much money I have in-game. I used vim with &lt;code&gt;:%!xxd&lt;/code&gt; to get the hex dump (maybe I should research a proper hexeditor again), make the 2-byte change at offset 0x284 (little-endian, of course). Reverse it with &lt;code&gt;:%!xxd -r&lt;/code&gt;, and save the file.&lt;/p&gt;
&lt;p&gt;Then I derived the checksum I'll have to insert back into the file:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="o"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;~/&lt;/span&gt;&lt;span class="n"&gt;Downloads&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;delsum&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;check&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'crc width=32 poly=0x4c11db7 init=0x0 xorout=0x235b4b9c refin=false refout=false out_endian=little'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;test1&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sav&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="n"&gt;cc2e3b4&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;So then I opened up the file again, xxd again, put that as the first 4 bytes, reversed xxd again and saved it. I replaced the main file, and told the game to reload. Nope, corrupted.&lt;/p&gt;
&lt;p&gt;After some brief checking, I learned my test1.sav was one byte larger. Vim had of course saved the newline on the end. So, a &lt;code&gt;:set binary&lt;/code&gt; and &lt;code&gt;:set noeol&lt;/code&gt; later, I could save the file. And then the game can load my hacked savegame file!&lt;/p&gt;
&lt;p&gt;I intend to write a small python tool to facilitate making this process easier. I might even add a small frontend to make it easier to set the various in-game attributes, like profile name, settings, achievements/unlockables, etc. We'll see.&lt;/p&gt;</description><category>checksum</category><category>hexedit</category><category>narrative</category><category>research</category><category>reverse-engineering</category><guid>https://bgstack15.ddns.net/blog/posts/2024/03/26/the-checksum-for-the-savegame-file-for-snoopy-vs-the-red-baron/</guid><pubDate>Tue, 26 Mar 2024 13:21:57 GMT</pubDate></item><item><title>Initial research for hacking savegame files for Snoopy vs. the Red Baron</title><link>https://bgstack15.ddns.net/blog/posts/2024/03/22/initial-research-for-hacking-savegame-files-for-snoopy-vs-the-red-baron/</link><dc:creator>bgstack15</dc:creator><description>&lt;p&gt;This is the story of my meanderings to learn how to hexedit the savegame file for PC game &lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/en.wikipedia.org/wiki/Snoopy_vs._the_Red_Baron_(video_game)"&gt;Snoopy vs. The Red Baron&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The game has a short campaign (&amp;lt;20 hours of gameplay) where you unlock more weapons, earn money to buy those unlocked weapons and upgrades, and defeat the final boss.&lt;/p&gt;
&lt;p&gt;The game appears to use a video-game-console-style savegame file, in a binary format. After some very basic hexediting with vim and &lt;code&gt;:%!xxd&lt;/code&gt; (and &lt;code&gt;:%!xxd -r&lt;/code&gt; before returning it) it became fairly obvious where the username/profile names were kept, along with some basic things like current money balance, and progress on certain levels.&lt;/p&gt;
&lt;p&gt;I eventually learned that no changes I made would work, because the game would think the file is corrupt. The first four bytes are a checksum, and I spent about 10 hours total researching the checksum.&lt;/p&gt;
&lt;p&gt;I started by estimating how many bytes are in the checked payload. The sum is 4 bytes, and the file is always 15,444 bytes, so I started with the assumption that the checked data is everything else but the payload, including the &lt;code&gt;0x0a&lt;/code&gt; at the end.&lt;/p&gt;
&lt;p&gt;I tried writing some little functions in python, and I even found an implementation of &lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/github.com/GRISHNOV/Fletcher_checksum"&gt;Fletcher's checksum for python&lt;/a&gt;, but none of those worked. I even noted that the money of a player is stored in little-endian format, so I spent a bunch of time reformatting the output of every type of algo I tried. I don't really know how little-endian works, other than "1234 5678" would end up as "3412 7856" or maybe "7856 3412". &lt;strong&gt;sigh&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Since I couldn't guess the checksum, I then decided to investigate the binary file, named &lt;code&gt;srb.exe&lt;/code&gt;. I've heard of &lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/ghidra-sre.org/"&gt;Ghidra&lt;/a&gt;, and even had come across an article recently about using &lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/john-millikin.com/debugging-win32-binaries-in-ghidra-via-wine"&gt;it in wine&lt;/a&gt;. I probably found it on Ycombinator's &lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/news.ycombinator.com/item?id=32561130"&gt;Hacker News&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I realized that ghidra would be in Kali Linux, which is close enough to Devuan that I just needed to manually install the kali keyring dpkg, and then add the right repository and then apt-get install ghidra: Seamless!&lt;/p&gt;
&lt;p&gt;I got ghidra and gdb running, and was able to sort of hook up ghidra to the remote gdb thing running wine running srb.exe. I found a loose spot in the binary where I could put a stub for the getpid-linux-i386 function, offset &lt;code&gt;0x401042&lt;/code&gt;. I couldn't get breakpoints to work, so I gave up on the debugger. I spent hours in the codebrowser, and I poked around the few ReadFile and WriteFile kernel calls (which is the first time in my life that I've looked up Windows programming references, excluding powershell which isn't the same). Ghidra is really cool! I could see how somebody who knows what he's doing could do so much more with it. It almost made me appreciate having to install java on my system for it.&lt;/p&gt;
&lt;p&gt;I gave ollydbg a try, after undoing the minor damage its dependent package kali-defaults wreaked on my system files. I didn't understand ollydbg as much as I did ghidra (which was still only like a 2% understanding for that one), and also the game would always crash when I ran it in the ollydbg debugger.&lt;/p&gt;
&lt;p&gt;As a side note, I spent a lot of time changing in &lt;code&gt;winecfg&lt;/code&gt; to emulate a virtual desktop, so I could have the game up while hacking the savegame file. The game itself has a handy option to reload the savegame file, so I could make any changes, replace "Profile 1.sav" (hardcoded, which is easy to see in the binary), and tell it to reload. Upon which, of course, it would say the file was corrupted and it would have to delete it. The game, being a flying sim, struggled with when my mouse hit the edge of my real screen, because I must have forgotten to bind the mouse to the virtual-desktop-bound. So in between hacking the savegame file, I'd play a little, for which I needed full screen again. I'm guessing there's a winetricks command that simplifies that, but whatever.&lt;/p&gt;
&lt;p&gt;So, after enjoying reading decompiled assembly, which would just name variables like "puVar12" and "param_3_00", and renaming a few of those, and still not finding what I was looking for, I switched back to researching the checksums.&lt;/p&gt;
&lt;p&gt;Of course I have copies of the one 15kb-sized file, at various points in my progress of the gameplay. I was wondering if I just needed to brute-force the stuff. I felt it was going to be a crc32, because isn't that the most basic checksum (command &lt;code&gt;cksum&lt;/code&gt;) around?&lt;/p&gt;
&lt;p&gt;I learned about a sourceforge-hosted project (which used to be cool), and since the project was from the same timeframe as when SF was cool, there was a chance: &lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/reveng.sourceforge.io/"&gt;CRC RevEng&lt;/a&gt;. I spent maybe an hour investigating this tool, but I think I was missing some key info, like a "polynomial," as well as I think it couldn't handle the 15kb payload. All the samples in the example were given on the command line as short string literals and not filenames. I briefly checked if the bashism &lt;code&gt;&amp;lt; &amp;lt;( cat "Profile 1.sav")&lt;/code&gt; would work. It did not.&lt;/p&gt;
&lt;p&gt;So I found a few other tools in a discussion on the &lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/reverseengineering.stackexchange.com/questions/30028/is-there-a-software-that-can-reverse-calculate-checksums-by-brute-force"&gt;Reverse Engineering Stack Exchange&lt;/a&gt;. I looked at &lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/github.com/OALabs/hashdb"&gt;hashdb&lt;/a&gt; but that focuses on malware checksums. So the second tool, &lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/github.com/8051Enthusiast/delsum"&gt;delsum&lt;/a&gt; seemed very interesting. I don't know if I'd be able to compile rust, but thankfully a binary release exists.&lt;/p&gt;
&lt;p&gt;And there this story should end. (Because I was successful, with delsum.) Tune in next time for more information about hexediting the savegame, and the checksum involved.&lt;/p&gt;</description><category>checksum</category><category>hexedit</category><category>narrative</category><category>research</category><category>reverse-engineering</category><guid>https://bgstack15.ddns.net/blog/posts/2024/03/22/initial-research-for-hacking-savegame-files-for-snoopy-vs-the-red-baron/</guid><pubDate>Fri, 22 Mar 2024 13:07:15 GMT</pubDate></item><item><title>Get Unix-style sha1 sum in Powershell</title><link>https://bgstack15.ddns.net/blog/posts/2020/08/29/get-unix-style-sha1-sum-in-powershell/</link><dc:creator>bgstack15</dc:creator><description>&lt;p&gt;When you need to provide in Powershell a sha1 sum that will be compared to a
Unix-style sha1 sum, you can use this simple oneliner.&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="ss"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;FileHash&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;Algorithm&lt;/span&gt; &lt;span class="nv"&gt;SHA1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;Path&lt;/span&gt; &lt;span class="nv"&gt;C&lt;/span&gt;:\&lt;span class="nv"&gt;Path&lt;/span&gt;\&lt;span class="nv"&gt;to&lt;/span&gt;\&lt;span class="nv"&gt;file&lt;/span&gt;.&lt;span class="nv"&gt;zip&lt;/span&gt; &lt;span class="ss"&gt;)&lt;/span&gt;.&lt;span class="nv"&gt;Hash&lt;/span&gt;.&lt;span class="k"&gt;ToLower&lt;/span&gt;&lt;span class="ss"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I know, really deep. But I needed it.&lt;/p&gt;</description><category>checksum</category><category>oneliner</category><category>powershell</category><guid>https://bgstack15.ddns.net/blog/posts/2020/08/29/get-unix-style-sha1-sum-in-powershell/</guid><pubDate>Sat, 29 Aug 2020 12:39:48 GMT</pubDate></item></channel></rss>