Skip to main content

A command-line password manager

Project description

CLPM: A Command-Line Password Manager.

Table of Contents

  1. About
  2. Installation
    1. Requirements
    2. Regular Install
    3. Local/Manual Install
    4. Uninstall
  3. Usage
    1. Add Account
    2. Remove Account
    3. Query Database
    4. Reset
  4. TODO

About

CLPM is a is an easy-to-use out-of-the-box password manager accesible solely through the command-line. The passwords are encrypted using 256 bit AES and the master password is hashed using 256 bit SHA-3. The master password is used to generate a key for encryption and for accessing the accounts. The accounts are stored in a local SQL database.

Installation

Requirements

  • python >= 3.9
  • pip >= 21.1.2

Automatically installed by pip:

  • Click >= 8.1.3
  • pycryptodome >= 3.14.1
  • prettytable >= 3.3.0

Regular Install

For most, installing this project can be done running pip install clpm, which pulls the project from PyPI.

Local/Manual Install

If needed, this project can be installed and run locally:

  1. Clone this project to a local repository.
  2. Run python setup.py install Note: setup.py uses pip to install the project as a package on the local system

Uninstall

To uninstall this project, for both remote and local installations, run pip uninstall clpm

If clpm has been already been initialized, pip won't delete the file passwords.db which contains all stored account information. This means that clpm can be reinstalled and still retain the same accounts & master password. If you wish to completely remove clpm from your device, you must manually remove passwords.db by either using the rm command or a file explorer.

Usage

Run clpm init to initialize the database. A prompt & confirmation will appear to input a master password. The master password is required for to access the database for all commands. In fact, all commands - including init - accept a --password argument for the master password instead of a prompt.

Note: clpm will not work unless a master password is set through clpm init first.

Add Account

To add an account to the database, run clpm add. After a prompt to input the master password, a menu will appear that requests input for account name, username, email, tag and password. Bolded fields are required. If the field is not required, press Enter to leave it empty. At any point, press q to terminate the command.

Each Account includes an automatically generated id that iterates for each added account.

Remove Account

To remove an account from the database, run clpm delete ID where ID is the accounts id. Once again, a prompt to input the master password will appear.

Query Database

To query the database, run clpm query. This command alone will simply output all accounts and information. Use arguments to search by attributes:

  1. -l/--all serve the same purpose as clpm query with no arguments.
  2. -a/--accounts ACCOUNT search for accounts with the account field ACCOUNT.
  3. -t/--tags TAG search for accounts that with the tag field TAG.
  4. -i/--ids ID retrieves the acccount with an id field of ID.

Reset

To reset the database (i.e, remove all accounts and master password), run clpm reset. A confirmation prompt as well as a master password prompt will appear. This will clear passwords.db but leave the file on the system.

Note: after reset, clpm will not work unless it is reinitialized.

TODO

  • Encrypt all account information rather than just passwords.
  • Revamp menu.
  • Fix double init/reset error.
  • Clear terminal history after query/add.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clpm-1.3.6.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

clpm-1.3.6-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file clpm-1.3.6.tar.gz.

File metadata

  • Download URL: clpm-1.3.6.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for clpm-1.3.6.tar.gz
Algorithm Hash digest
SHA256 6ca1529f5c2e31be12da9470ea6b307ff39c4f24ce87144dba5b8743550718d8
MD5 befcd09e3ac045e04a7ba2ddb80dc0be
BLAKE2b-256 d8f92643a222b049f3eea9b5a876646a3ba694fa7c2ab752636f2554a5c8e4b8

See more details on using hashes here.

File details

Details for the file clpm-1.3.6-py3-none-any.whl.

File metadata

  • Download URL: clpm-1.3.6-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for clpm-1.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3879db872b2eb47d2b2b9025aa7365024c1878a05bfa5ddccde76aa30df80e3b
MD5 ba6dc42d627f7ec9e177acd82cbaf918
BLAKE2b-256 6ca3a4dc5e77a0554821034882e84a373d232fdcd06f51221e9496905703f616

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page