summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGab <24553253+gabrix73@users.noreply.github.com>2025-02-13 17:49:10 +0100
committerGitHub <noreply@github.com>2025-02-13 17:49:10 +0100
commit02bee5d15a40768769a50c56eb6803ab47ae1f22 (patch)
tree30d8b14924711e45bb18e87729fd1ca974988d5d
parent84af32d7bbd988e677471ac6339ff01ff7bfdd6c (diff)
downloadnofuture-go-memguard-02bee5d15a40768769a50c56eb6803ab47ae1f22.tar.gz
nofuture-go-memguard-02bee5d15a40768769a50c56eb6803ab47ae1f22.tar.xz
nofuture-go-memguard-02bee5d15a40768769a50c56eb6803ab47ae1f22.zip
Update README.md
-rw-r--r--README.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index dc0e7d3..b6b9489 100644
--- a/README.md
+++ b/README.md
@@ -2,14 +2,16 @@
<strong>MemGuard Initialization & Configuration:</strong><br>
- <pre><code>memguard.CatchInterrupt()
+ <pre><code>
+ memguard.CatchInterrupt()
memguard.Purge()
-unix.Mlockall(unix.MCL_CURRENT | unix.MCL_FUTURE)</code></pre>
+unix.Mlockall(unix.MCL_CURRENT | unix.MCL_FUTURE)
+</code></pre>
<ul>
<li><strong>Secure Memory Locking:</strong> Prevents swapping sensitive data to disk</li>
<li><strong>Interrupt Handling:</strong> Automatic memory purge on SIGINT/SIGTERM</li>
<li><strong>Deep Memory Purge:</strong> Secure wiping of allocated buffers</li>
- </ul></code></pre>
+ </ul>
<strong>MemGuard in Key Lifecycle Management:</strong><br>
<pre><code>passphrase, _ := memguard.NewImmutableRandom(32)