
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
| |logo|
| |pypi version| |build| |coverage| |format| |status| |python version|
This is a python port of npm
package
password-validator <https://github.com/tarunbatra/password-validator>
__.
pip install password-validator
.. code:: py
from password_validator import PasswordValidator
# Create a schema
schema = PasswordValidator()
# Add properties to it
schema\
.min(8)\
.max(100)\
.has().uppercase()\
.has().lowercase()\
.has().digits()\
.has().no().spaces()\
# Validate against a password string
print(schema.validate('validPASS123'));
# => True
print(schema.validate('invalidPASS'));
# => False
Rules supported as of now are:
+--------------------+-------------------------------------------------------------------+ | Rules | Descriptions | +====================+===================================================================+ | digits() | specifies password must include digits | +--------------------+-------------------------------------------------------------------+ | letters() | specifies password must include letters | +--------------------+-------------------------------------------------------------------+ | lowercase() | specifies password must include lowercase letters | +--------------------+-------------------------------------------------------------------+ | uppercase() | specifies password must include uppercase letters | +--------------------+-------------------------------------------------------------------+ | symbols() | specifies password must include symbols | +--------------------+-------------------------------------------------------------------+ | spaces() | specifies password must include spaces | +--------------------+-------------------------------------------------------------------+ | min(len) | specifies minimum length | +--------------------+-------------------------------------------------------------------+ | max(len) | specifies maximum length | +--------------------+-------------------------------------------------------------------+ | no([regex]) | inverts the result of validations applied next | +--------------------+-------------------------------------------------------------------+ | has([regex]) | inverts the effect of no() and applies a regex (optional) | +--------------------+-------------------------------------------------------------------+
MIT License <https://choosealicense.com/licenses/mit/>
__
.. |pypi version| image:: https://img.shields.io/pypi/v/password-validator?color=blue&logo=password_validator&style=flat-square :target: https://pypi.org/project/password-validator .. |python version| image:: https://img.shields.io/pypi/pyversions/password-validator?color=red&logo=version&style=flat-square .. |format| image:: https://img.shields.io/pypi/format/password-validator?color=orange&style=flat-square .. |status| image:: https://img.shields.io/pypi/status/password-validator?logo=status&style=flat-square .. |logo| image:: https://res.cloudinary.com/tbking/image/upload/v1490803400/password-validator/logo.png .. |build| image:: https://img.shields.io/github/workflow/status/tarunbatra/password-validator-python/CI?logo=github&style=flat-square :target: https://github.com/tarunbatra/password-validator-python/actions?query=workflow%3ACI .. |coverage| image:: https://img.shields.io/codecov/c/gh/tarunbatra/password-validator-python?logo=codecov&style=flat-square :target: https://codecov.io/gh/tarunbatra/password-validator-python
FAQs
Validates password according to flexible and intuitive specifications
We found that password-validator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.