85 lines
4.8 KiB
HTML
85 lines
4.8 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head">
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self'; font-src 'self' data:; img-src 'self' data:; connect-src 'self'; base-uri 'self'; form-action 'self' https://defcon.social https://bsky.app;">
|
||
<meta http-equiv="X-Content-Type-Options" content="nosniff">
|
||
<link rel="stylesheet" href="../assets/css/style.css">
|
||
<link rel="icon" type="image/x-icon" href="../favicon.ico">
|
||
<script>
|
||
// Apply theme immediately to prevent flash
|
||
(function() {
|
||
const theme = localStorage.getItem('theme') ||
|
||
(window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
|
||
document.documentElement.setAttribute('data-theme', theme);
|
||
})();
|
||
</script>
|
||
<title>sha512sum Cheatsheet - Launch Pad</title>
|
||
</head>
|
||
<body>
|
||
<button class="theme-toggle" id="themeToggle" aria-label="Toggle dark mode">
|
||
<svg class="theme-icon theme-icon-moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
|
||
<svg class="theme-icon theme-icon-sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display: none;"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
|
||
</button>
|
||
<br/><br/>
|
||
<div class="name">
|
||
__ _______________________ _________._________________________
|
||
\_ _____/ \______ \ / _ \ / _____/ / _____/ | | \_ _____/
|
||
| __) | _/ / /_\ \ / \ ___ / \ ___ | | | __)_
|
||
| \ | | \ / | \ \ \_\ \ \ \_\ \ | |___ | \
|
||
\___ / |____|_ / \____|__ / \______ / \______ / |_______ \ /_______ /
|
||
\/ \/ \/ \/ \/ \/ \/
|
||
</div>
|
||
<div class="blog-page-header">
|
||
<div class="blog-header-content">
|
||
<a href="/cheatsheets" class="back-link" title="Back to Cheatsheets">
|
||
← Back to Cheatsheets
|
||
</a>
|
||
<h1 class="blog-page-title">sha512sum Cheatsheet</h1>
|
||
</div>
|
||
</div>
|
||
<div class="blog-posts-container">
|
||
<div class="blog-post-content">
|
||
<p>
|
||
Quick reference for <code>sha512sum</code>, a tool to compute and verify SHA-512 checksums.
|
||
SHA-512 is a stronger variant in the SHA-2 family, useful when you want a very conservative hash.
|
||
</p>
|
||
|
||
<h2>Basic usage</h2>
|
||
<ul>
|
||
<li><code>sha512sum file.img</code> – print SHA-512 hash and filename.</li>
|
||
<li><code>sha512sum file1 file2</code> – hash multiple files.</li>
|
||
<li><code>echo -n "test" | sha512sum</code> – hash data from stdin.</li>
|
||
</ul>
|
||
|
||
<h2>Common options</h2>
|
||
<ul>
|
||
<li><code>-b</code> – read files in binary mode (default on Linux).</li>
|
||
<li><code>-t</code> – read files in text mode (mainly for non-Unix systems).</li>
|
||
<li><code>-c</code> – check SHA-512 sums from a file.</li>
|
||
</ul>
|
||
|
||
<h2>Creating and verifying checksum files</h2>
|
||
<ul>
|
||
<li><code>sha512sum file.img > file.img.sha512</code> – save checksum.</li>
|
||
<li><code>sha512sum file1 file2 > checksums.sha512</code> – create checksum list.</li>
|
||
<li><code>sha512sum -c file.img.sha512</code> – verify a single file.</li>
|
||
<li><code>sha512sum -c checksums.sha512</code> – verify multiple files.</li>
|
||
</ul>
|
||
|
||
<h2>Tips</h2>
|
||
<ul>
|
||
<li>Use SHA-512 when you want additional margin over SHA-256 (or when an ecosystem expects it).</li>
|
||
<li>Checksums are only as trustworthy as the channel you got them from—publish them securely.</li>
|
||
<li>For most cases, SHA-256 is enough; SHA-512 is the “belt and suspenders” option.</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<script async type="text/javascript" src="../blog/analytics.js"></script>
|
||
<script src="../theme.js"></script>
|
||
</body>
|
||
</html>
|
||
|
||
|