Skip to content

Make changes to Others/PasswordGen.java #1471

Description

@arrnavvv

The file: https://github.com/TheAlgorithms/Java/blob/master/Others/PasswordGen.java
The current code doesn't always generate passwords that follow the policy of passwords which are at least 1 lower, 1 upper, 1 number, and 1 special character in your password.
I am attaching an example of one such password generated by the current code.

Screenshot (1)
This password has no number in this password which violates the rules.

Can I work on solving this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions