diff options
| author | Gab Virebent <gabriel1@virebent.art> | 2026-07-06 16:34:47 +0200 |
|---|---|---|
| committer | Gab Virebent <gabriel1@virebent.art> | 2026-07-06 16:34:47 +0200 |
| commit | 16854e8b24a3b00d9d5dbd285bbe3b93ee47ce1c (patch) | |
| tree | 7ac7c321cacd62795cc23939bebdc9c48975377e /go.mod | |
| parent | 4fd6b4fefa7243f68fae7e24df3da46ee1a8e356 (diff) | |
| download | nymdrop-16854e8b24a3b00d9d5dbd285bbe3b93ee47ce1c.tar.gz nymdrop-16854e8b24a3b00d9d5dbd285bbe3b93ee47ce1c.tar.xz nymdrop-16854e8b24a3b00d9d5dbd285bbe3b93ee47ce1c.zip | |
Guard key material in RAM with memguard, add Markdown preview for message field
Reader now keeps the private key bytes and the per-submission ECDH/HKDF
secrets in memguard.LockedBuffer (mlock + guaranteed wipe) instead of a
manual zero loop. Added a regression test for the decrypt path.
Message field gets a self-hosted Markdown toggle preview (no external
library): headers, bold/italic, inline code, code blocks, blockquotes,
lists, links. Output is HTML-escaped and link schemes are whitelisted
before rendering. Submitted content is still the raw Markdown source,
unchanged on the wire.
Diffstat (limited to 'go.mod')
| -rw-r--r-- | go.mod | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -3,6 +3,12 @@ module nymdrop go 1.26.2 require ( - golang.org/x/crypto v0.51.0 // indirect - golang.org/x/net v0.54.0 // indirect + github.com/awnumar/memguard v0.23.0 + golang.org/x/crypto v0.51.0 + golang.org/x/net v0.54.0 +) + +require ( + github.com/awnumar/memcall v0.4.0 // indirect + golang.org/x/sys v0.44.0 // indirect ) |
