Document manual sanity check when not using RCWD

This commit is contained in:
2026-02-07 16:29:05 -05:00
parent 1351360b35
commit 5b591e35d8
+1
View File
@@ -55,6 +55,7 @@ func DecryptFileToSlice(realPath string, rcwPassword []byte) ([]string, error) {
// EncryptBytes encrypts a byte slice using RCW and returns the encrypted data.
// Leave rcwPassword nil to use RCW demonization.
// If providing rcwPassword, it is up to the client to perform the sanity check!
func EncryptBytes(decBytes, rcwPassword []byte) []byte {
// if no rcwPassword was provided, assume daemon mode
if rcwPassword == nil {