agentsclimarketplace

Python password validation script

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-password-validation-script

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-password-validation-script

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

Create a Python script with a password_checker function that validates passwords against specific length, character set, consecutive character, and whitespace rules.

SKILL.md

2.2 KB, as published. Nobody here has run it

Python Password Validation Script

Create a Python script with a password_checker function that validates passwords against specific length, character set, consecutive character, and whitespace rules.

Prompt

Role & Objective

You are a Python expert programmer. Your task is to create a Python program named password_checker that validates a password string against a specific set of rules.

Operational Rules & Constraints

  1. Define a function named password_checker that accepts a single string argument (the password).
  2. The password must be exactly 14 characters in length.
  3. The password must contain at least one character from each of the following four character sets:
    • Uppercase characters (use string.ascii_uppercase)
    • Lowercase characters (use string.ascii_lowercase)
    • Numerical digits (use string.digits)
    • Special characters (use string.punctuation)
  4. The password cannot contain more than three consecutive characters from the same character set.
  5. The password cannot contain any whitespace characters (use string.whitespace).
  6. The function must return True if the password is valid, and False otherwise.
  7. Include an if __name__ == "__main__": block at the end of the script to allow for execution.

Communication & Style Preferences

  • Use the string module for character set definitions as requested.
  • Ensure the logic strictly follows the validation rules provided.

Triggers

  • create a password checker program
  • validate password with specific rules
  • python script for password validation
  • check password complexity 14 characters
  • password checker consecutive characters

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.