withSecurePassword

fnReadOpts withSecurePassword(ReadOpts ro, ref SecurePassword pw) @system @nogc nothrow

Sets a secure password reference. This avoids copying plaintext into GC memory.

Note

The password object is not owned by ReadOpts; it must remain valid

until toLow() is called and the resulting ReadOptions is used. Prefer this over withPassword to reduce plaintext lifetime in memory.

fnCreateOpts withSecurePassword(CreateOpts co, ref SecurePassword pw) @system @nogc nothrow

Sets a secure password reference. This avoids copying plaintext into GC memory.

Note

The password object is not owned by CreateOpts; it must remain valid

until toLow() is called and the resulting CreateOptions is used. Prefer this over withPassword to reduce plaintext lifetime in memory.