Skip to content

An elegant Python CLI password manager with secure encryption, MariaDB/MySQL support, and clipboard integration

License

Notifications You must be signed in to change notification settings

ezhil56x/password-manager-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password Manager CLI

Description

The Password Manager is a command-line tool that allows you to store, retrieve and generate passwords securely. It provides a simple way to manage your passwords without having to remember them. This tool uses a master password to secure your passwords. The master password is configured when you first run the tool and is used to encrypt and decrypt your passwords. It is written in Python and uses the cryptography module and mariadb or mysql server to store the passwords. This tool uses pyperclip module to copy the password to the clipboard.

Requirements

  • Python 3.6 or higher
  • mariadb or mysql server

Installation

  1. Clone the repository
git clone https://github.com/ezhil56x/password-manager-cli.git
  1. Go to password-manager-cli directory
cd password-manager-cli
  1. Install mariadb or mysql server
sudo apt install mariadb-server
  1. Login to mariadb or mysql server and create a user
sudo mysql -u root
MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';
  1. Install the required packages using the following command
pip install -r requirements.txt

Usage

  1. Run --config for the first time to configure the master password and databases
python password_manager.py --config
  1. To store a new credential, run the following command
python password_manager.py --operation store --master-password <master-password> --service <servicename> --password <password>
  1. To retrieve a credential, run the following command
python password_manager.py --operation retrieve --master-password <master-password> --search <search>
  1. To generate a password, run the following command
python password_manager.py --operation generate --length <length>
  1. For help, run the following command
python password_manager.py --help

About

An elegant Python CLI password manager with secure encryption, MariaDB/MySQL support, and clipboard integration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages