🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

security-scanner

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

security-scanner

Password/passphrase strength and health checker

0.1.4
PyPI
Maintainers
1

Security Scanner

A package used to check the health and strength of passwords/passphrases.

How to use

After installing the package use following import:

from security_scanner import (
    check_password_strength,
    check_uniqueness,
    check_membership_in_rainbow_tables,
    check_rotation_activated
    )

Then use following commands:

password = getpass.getpass(prompt='Enter password: ')

if not check_password_strength(password):
    print("Password is weak")
elif not check_uniqueness(password):
    print("Password is not unique")
elif not check_membership_in_rainbow_tables(password):
    print("Password is in rainbow tables")
elif not check_rotation_activated(datetime.date(YEAR, MONTH, DAY), rotation_interval_days):
    print("password rotation is not activated")
else:
    print("Password is strong and unique, and password rotation is activated")

FAQs

Did you know?

Socket

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.

Install

Related posts