Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password Generator Created #1111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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