Skip to content

TextInputDialog.showPasswordDialog() should return a character array instead of a String #639

@v322v322

Description

@v322v322

Since Strings are immutable in Java, any handling of passwords in Java should be via a char[] which can be overwritten with Arrays.fill() as soon it is no longer needed. Even if the String goes out of scope, there is no guarantee if or when it will be garbage collected, and even if it is garbage collected, there is no guarantee that the memory will be overwritten.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions