Checksums

11. Januar 2018 / Bash / Ubuntu / Windows

×Info: This post is older than 2 years! Displayed information may be outdated!

Ein paar Checksummen von Dateien erstellen und prüfen (Windows, Mac, Linux).

Mac/Ubuntu

# Mac/Ubuntu

# SHA-1 hash
shasum -a 1 <path/to/file>

# SHA-256 hash
shasum -a 256 <path/to/file>

# SHA-512 hash
shasum -a 512 <path/to/file>

# even MD5 if still needed
# Mac
md5 <path/to/file>
# Ubuntu
md5sum <path/to/file>

Windows 10

# Windows 10 (cmd.exe)

# SHA-1 hash
CertUtil -hashfile <path/to/file>

# SHA-256 hash
CertUtil -hashfile <path/to/file> SHA256

# SHA-512 hash
CertUtil -hashfile <path/to/file> SHA512

# even MD5 if still needed
CertUtil -hashfile <path/to/file> MD5