laysakura / serde-encrypt

🔐 Encrypts all the Serialize.
Apache License 2.0
175 stars 6 forks source link

chunk (split) large message for performance #9

Closed laysakura closed 3 years ago

laysakura commented 3 years ago

Be careful not to use the same nonce for each chunk.

16KB chunk is recommended here. https://pkg.go.dev/golang.org/x/crypto@v0.0.0-20210513164829-c07d793c2f9a/nacl/box