Skip to content

Password Generator Created#1111

Open
Pasindu3683 wants to merge 1 commit intosukeesh:masterfrom
Pasindu3683:password_generator
Open

Password Generator Created#1111
Pasindu3683 wants to merge 1 commit intosukeesh:masterfrom
Pasindu3683:password_generator

Conversation

@Pasindu3683
Copy link

Created a password generator API plugin. Takes in input on length and Y/N for numbers and special character inclusion.
This addresses issue #1109

Created a password generator API plugin.
import requests

@plugin("generate_password")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove whitespace

else:
exclude_numbers = False

inp = bool(jarvis.input("Would you like to exclude special characters? (Y/N) : "))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fairly certain this would always evaluate to true as any string is a truthy value.


def generate_password(jarvis, s):
length = int(jarvis.input("Desire password length: "))
inp = str(jarvis.input("Would you like to exclude numbers? (Y/N) : "))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

casting to a str here is un-necessary, by default an input return type is str.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants