Crates.io | crypt |
lib.rs | crypt |
version | 0.1.7 |
source | src |
created_at | 2014-11-21 10:30:46.82922 |
updated_at | 2023-02-19 03:34:28.052584 |
description | A secure and convenient password vault for the command-line. |
homepage | https://github.com/christian-cleberg/crypt |
repository | https://github.com/christian-cleberg/crypt |
max_upload_size | |
id | 283 |
size | 256,681 |
A simple command-line password manager, written in Rust + SQLite. This tool allows you to manage accounts and generate random passwords containing ASCII letters, numbers, and punctuation or XKCD-like passphrases.
Data is encrypted prior to being saved within the SQLite database using the
fernet crate. Encryption and decryption require the
use of a randomly-generated key saved as vault.key
but the key-file is saved
in plaintext, which means that an attacker that can access the key-file can also
decrypt the database. Further development may allow password-protection of the
key-file; please open an issue or pull request if you want this feature!
NOTE: This crate is not ready for use in production yet. There are many items still left to implement prior to a production-ready release - see the TODO section for more details.
To install the package from Crates.io, run the following command:
cargo install crypt
Visit the Crypt page for more information.
All arguments can be passed to the app with the following template:
crypt ARGUMENT [VALUES]
Argument (Short) | Argument (Long) | Explanation |
-h | --help | Print the welcome message |
-n | --new | Create a new account |
-l | --list | List all saved accounts |
-e | --edit [UUID] [FIELD_NAME] | Edit a saved account |
-d | --delete [UUID] | Delete a saved account |
-p | --purge | Purge all accounts and delete the vault |
Any and all contributions are welcome. Feel free to fork the project, add features, and submit a pull request.
struct
)git clone https://github.com/christian-cleberg/crypt
cd crypt
If you've made changes to the code and would like to test them, use the following commands.
cargo build --release
./target/release/crypt --help
If you are ready to push your changes to crates.io, use the commands below. For beginners, note that you cannot publish changes to a crate you don't own (i.e. you must be added as a contributor on crates.io).
cargo build --release
cargo login [API_TOKEN]
cargo publish --dry-run
cargo publish