Skip to content

Ciremun/password-manager

Repository files navigation

password-manager

build-console-ci build-ui-desktop build-ui-android Coverity Scan Build Status

Usage

./pm [flags]                      read or write data

sync:                             set PM_SYNC_REMOTE_URL env var

flags:

-d       --data                   data to encrypt
-df      --data-file              data to encrypt from file
-l       --label                  label data / find by label
-dl      --delete-label           delete label and its data
-gp      --generate-password [N]  put random data
-c       --copy [label]           win32: copy to clipboard, posix: pipe with clip tools
-k       --key                    key
-kf      --key-file               key file path
-i       --input                  encrypted file path
-o       --output                 decrypted file path
-b       --binary                 binary mode
-b64enc  --base64-encode [str]    base64 encode string to stdout, optional key
-b64dec  --base64-decode [str]    base64 decode string to stdout, optional key
-v       --version                display version
-h       --help                   display help

Build

sh build_console.sh

Examples

generate and copy a password

echo "secret_key" > key.txt
./pm -kf key.txt -gp -c password_name | xclip

copy saved password

./pm -kf key.txt -c pass | xclip

When searching for passwords by label you can also provide a Glob pattern

./pm -kf key.txt -c '?ass*' | xclip

encrypt binary

./pm -kf key.txt -i binary -o binary.enc -b

decrypt binary

./pm -kf key.txt -i binary.enc -o binary.dec -b

print all passwords

./pm -kf key.txt

base64 encode string to stdout, optional key

./pm -b64enc "string" [-kf key.txt]

Glob

Wildcard Description Example Matches Does not match
* matches any number of any characters including none Law* Law, Laws, or Lawyer GrokLaw, La, or aw
? matches any single character ?at Cat, cat, Bat or bat at
[abc] matches one character given in the bracket [CB]at Cat or Bat cat, bat or CBat

Stolen and adapted from Wikipedia. Please note that the [a-z] syntax mentioned in the original Wikipedia article is NOT supported right now.

Thank

Dear ImGui
stb
Tiny AES
rawdraw
nobuild
b64.c