Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
pypass-tool
is a Python-based password management utility that allows users to generate random passwords and store them inside a file for easy recall. It will check for password strength and provide options to adjust the length of the password and exclude specific characters. Users can choose to generate passwords using the command line (CLI), a web browser, or a desktop app.
Features | Installation | Build from scratch | Usage | Package Usage | Development | Contributing
To install pypass-tool
directly from PyPI:
pip install pypass-tool
You can also clone the repository and build the package yourself.
git clone https://github.com/h471x/password_generator.git
cd password_generator
python setup.py sdist bdist_wheel
pip install dist/pypass_tool-*.whl
Once the package is installed, you can use the pypass
command with different interfaces:
CLI Mode (default):
pypass
Desktop GUI Mode:
pypass gui
Web Interface Mode:
pypass web
Open your browser and navigate to http://127.0.0.1:5000
.
You can also use pypass-tool
as a package in your own scripts. Here's an example:
from pypass import PasswordGenerator
def main():
# Create an instance of PasswordGenerator
new_pass = PasswordGenerator()
# Set the desired password length and characters to exclude
new_pass.set_password_length(16)
new_pass.exclude_characters("weak12345")
# Generate the password with the specified settings
password = new_pass.generate_password()
# Get the password strength
strength = new_pass.evaluate_strength(password)
# Print the generated password
print(f"Generated Password : {password}")
# print the password strength
print(f"Password Strength : {strength}")
if __name__ == "__main__":
main()
To modify or extend the functionality, ensure you have the required dependencies installed. You can add new features to the CLI, desktop, or web interface as per the structure.
The required dependencies for the project are listed in setup.py
:
Install the required dependencies using:
pip install -r requirements.txt
Feel free to fork this repository, open issues, or submit pull requests with improvements or bug fixes.
FAQs
A CLI tool for password generation
We found that pypass-tool 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.