Categories
Uncategorized

PowerShell & Hashing #234grf#dfknsd#

Want to try some hashing? 🙂 This from the NSA!

SHA-2 (Secure Hash Algorithm 2) is a set of cryptographic hash functions designed by the United States National Security Agency (NSA).They are built using the Merkle–Damgård structure, from a one-way compression function itself built using the Davies–Meyer structure from a (classified) specialized block cipher.

From Wikipedia

@{Algorithm=SHA512; Hash=979749F8518909E46D4FAD54EED5E16DB8E644DD061370DEE715D4310E42B68BBB37E1D6F7B668D9E625BCC4212179689C9544E88848651CA54151E7BDF27E74; Path=C:\Users\**********

This is the output of running the SHA512 algorithm over a simple txt file. If you want to try the same run the following command from windows powershell:

C:\Users\********\desktop> Get-FileHash Message.txt -Algorithm SHA512 | Add-Content Hash.txt

*This depends upon having a simple notebook file on your desktop, one called Message and one called Hash. Remember to save your note in the message file first.

Leave a Reply