Crates.io | konpeito |
lib.rs | konpeito |
version | 0.3.0 |
source | src |
created_at | 2022-09-02 05:50:17.950315 |
updated_at | 2024-06-28 20:32:03.08537 |
description | Personal key-value store CLI |
homepage | |
repository | https://github.com/tau-OS/konpeito |
max_upload_size | |
id | 657191 |
size | 61,248 |
<img align="left" style="vertical-align: middle" width="120" height="120" src=https://user-images.githubusercontent.com/4886639/183321432-b17aa134-9f7a-41ee-91d2-778b6062813f.png>
Konpeito is a personal key-value store CLI that can be used to store anything securely to/from the system's keyring.
Konpeito uses the Secret Service API (provided by the keyring
crate) to store items. This means that the items are stored in the system's keyring, which is a secure(ish) way to store items. The keyring is encrypted and can only be accessed by the user that created it.
This mean that Konpeito is not an actual database, but a wrapper around the keyring API to store tokens, passwords, or any other kind of data and easily retrieve it for CLI usage or scripting. It also means that Konpeito relies on an existing keyring implementation, which means security is not guaranteed as the encryption is done by the keyring implementation, which varies depending on the OS, as follows:
OS | Keyring implementation |
---|---|
Linux | Linux keyutils, GNOME Keyring, or KWallet |
macOS | macOS Keychain |
Windows | Windows Credential Manager |
Konpeito reads and writes values using Base64 encoding, this means that you can store any kinds of data, not limited to just text.
To store items:
konp set key value
If you want to store a file or something from stdin:
konp set key < file
To retrieve items:
konp get key
To delete keys:
konp delete key
To list all keys for konpeito:
konp list
Simply install this crate
From source:
cargo install --path .
From crates.io:
cargo install konpeito