summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGab <24553253+gabrix73@users.noreply.github.com>2025-02-13 17:40:13 +0100
committerGitHub <noreply@github.com>2025-02-13 17:40:13 +0100
commitb945498e529cb80fe4bdb3548c4ccf3145bbdd29 (patch)
tree42403043a144a588c437d22d947ef06dd1812d3a
parent332a2900d5d627ba73ad178c3b0b76c911e9de70 (diff)
downloadnofuture-go-memguard-b945498e529cb80fe4bdb3548c4ccf3145bbdd29.tar.gz
nofuture-go-memguard-b945498e529cb80fe4bdb3548c4ccf3145bbdd29.tar.xz
nofuture-go-memguard-b945498e529cb80fe4bdb3548c4ccf3145bbdd29.zip
Update README.md
-rw-r--r--README.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/README.md b/README.md
index bde7822..8e5ebc5 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
- <h1>Nofuture.go - Post-Quantum Cryptographic System</h1>
+ <b>Nofuture.go - Post-Quantum Cryptographic System</b>
- <h2>MemGuard Initialization & Configuration</h2>
+ <b>MemGuard Initialization & Configuration</b>
<pre><code>memguard.CatchInterrupt()
memguard.Purge()
unix.Mlockall(unix.MCL_CURRENT | unix.MCL_FUTURE)</code></pre>
@@ -12,7 +12,7 @@ unix.Mlockall(unix.MCL_CURRENT | unix.MCL_FUTURE)</code></pre>
</ul>
- <h2>MemGuard in Key Lifecycle Management</h2>
+ <b>MemGuard in Key Lifecycle Management</b>
<pre><code>passphrase, _ := memguard.NewImmutableRandom(32)
defer passphrase.Destroy()</code></pre>
<ul>
@@ -21,7 +21,7 @@ defer passphrase.Destroy()</code></pre>
<li><strong>Automatic Destruction:</strong> Guaranteed wipe with defer</li>
</ul>
- <h2>Enclave-Based Cryptography</h2>
+ <b>Enclave-Based Cryptography</b>
<pre><code>func deriveEnclaveKey(passphrase *memguard.Enclave) {
passBuf, _ := passphrase.Open()
defer passBuf.Destroy()
@@ -33,7 +33,7 @@ defer passphrase.Destroy()</code></pre>
</ul>
- <h2>Quantum-Safe Key Exchange</h2>
+ <b>Quantum-Safe Key Exchange</b>
<pre><code>pubKey, secKey, _ := quantumKEMKeyPair()
defer pubKey.Destroy()
defer secKey.Destroy()</code></pre>
@@ -47,7 +47,7 @@ defer secKey.Destroy()</code></pre>
<li><strong>Zeroization on Completion:</strong> Guaranteed key destruction</li>
</ul>
- <h2>Secure Session Management</h2>
+ <b>Secure Session Management</b>
<pre><code>type QuantumSession struct {
sessionKey *memguard.Enclave
remotePubKey *memguard.Enclave
@@ -59,7 +59,7 @@ defer secKey.Destroy()</code></pre>
</ul>
- <h2>Memory-Hardened Cryptography</h2>
+ <b>Memory-Hardened Cryptography</b>
<pre><code>lockedKey, _ := memguard.NewImmutableFromBytes(key)
defer lockedKey.Destroy()</code></pre>
<ul>
@@ -78,7 +78,7 @@ defer lockedKey.Destroy()</code></pre>
</li>
</ul>
- <h2>MemGuard Best Practices</h2>
+ <b>MemGuard Best Practices</b>
<ul>
<li>🔒 Always use <code>defer .Destroy()</code> with LockedBuffers</li>
<li>🛡️ Prefer <code>NewImmutable</code> for long-lived secrets</li>