This CLI-tool diffs two Keepass (.kdbx) files and prints their differences.
cargo install keepass-diff
keepass-diff <file-a> <file-b>
The CLI will ask for the password for both files individually.
You can also provide one or both passwords on the command line (please be aware that this will expose them to other users logged on to the system):
keepass-diff <file-a> <file-b> --password-a <password-a> --password-b <password-b>
If the files have the same password, you can use the --passwords <password>
flag. Be aware this has the same problem
as above:
keepass-diff <file-a> <file-b> --passwords <password>
keepass-diff <file-a> <file-b> --keyfile-a <keyfile-a> --keyfile-b <keyfile-b>
If one of these flags is provided, it will use the keyfile for authentication. It will still ask for a password, if the password flags are not provided.
If you want to pipe the output of the command into another file or script, you may want to disable the terminal colors.
You can do so with the --no-color
or -C
flag.
--help
yields:
```
USAGE:
keepass-diff [FLAGS] [OPTIONS]
FLAGS: -h, --help Prints help information -C, --no-color Disables color output --no-password-a Sets no password for the first file (and will not ask for it) --no-password-b Sets no password for the second file (and will not ask for it) --no-passwords Sets no password for both files (and will not ask for both files) -V, --version Prints version information
OPTIONS:
--keyfile-a
ARGS:
.kdbx
files.Password for the Keepass demo files: demopass
Care to help? I'm pretty new to Rust, so if anyone likes to help or teach me cool stuff, please reach out! ````