Skip to content

Shouldn't the string Generate function use ProtectedStrings? #18

@ThisMakesSenseToMe

Description

@ThisMakesSenseToMe

string Generate(Options options, PwProfile profile, CryptoRandomStream random)
uses normal Strings to generate a Diceware password.

However, it is used in an override that expects a ProtectedString and there a non-protected string is returned [return new ProtectedString(false, result);]

So the chosen Diceware words are plain to read from memory. I think ProtectedStrings should be used as much and as soon as possible and the normal strings should be zeroed as soon as possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions