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