File Hashing
Linux
Get hash of text string:
echo -n 'This is the text' | md5sumExample:
echo -n "This is the text" | md5sum
Get hash of file
sha256sum <file>sha1sum <file>md5sum <file>Examples
sha256sum hashthis.jpgsha256sum hashthis.jpg && sha1sum hashthis.jpg && md5sum hashthis.jpg
Windows
Get-FileHash -Algorithm <algorithm> .\file_pathExamples
Get-FileHash -Algorithm sha1 .\hashthis.jpgget-filehash .\file.exe ; get-filehash -algorithm md5 .\file.exe ; get-filehash -algorithm sha1 .\file.exe
Last updated