/cred

Local password safe. Simple Python wrapper for Windows Credentials API

Primary LanguagePythonMIT LicenseMIT

cred

The module relies on Windows Credentials for storing the passwords.
It's just a cli tool for managing these credentials. Generates a 20-character length random string (with upper, lower, punctuation and digits) and saves for the given <target>.
Similar to cmdkey.exe but actually returns password.

Usage

usage: cred {{-r | -w} <target>}

> cred -r existing_credential
The password was written on the clipboard.

> cred -r non_existing_credential
Not found.

> cred -w any_string  # existing will be overwritten
Credential written.

Installation

> pip install cred

Future

Maybe more layers of security would be good, like:

  • Cleaning the clipboard after some time
  • Request passphrase to get access (would request admin rights)
  • Operates as another special user