1 个不稳定版本
0.2.0 | 2023年11月1日 |
---|
#17 在 #store-key
19KB
440 行
SYK
Syk (存储您的密钥) 是一个密钥值存储工具。密钥以 json 格式文件的形式存储和持久化。
- 安装
cargo install syk
- 如何使用?
$ syk -h
A key value tool to persist your passwords
Usage: syk <COMMAND>
Commands:
read Read data from storage
create Create an empty storage
insert Insert an item in storage
remove Remove an item from storage
lock Encrypt and compress storage data
unlock Decrypt and decompress storage data
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
- 创建存储
$ syk create ~/.storage
- 插入
$ syk insert ~/.storage "user" "key" "description"
- 列出
$ syk read ~/.storage -l
+----+---------------------+-----------------+-----------------------------+
| id | user | password | description |
+----+---------------------+-----------------+-----------------------------+
| 3 | [email protected] | zxcffddxxssdddd | bbbbbbbbbbb |
+----+---------------------+-----------------+-----------------------------+
| 2 | [email protected] | zxcffddxxssdddd | ccccccccccccccccccccccccccc |
+----+---------------------+-----------------+-----------------------------+
| 1 | [email protected] | zxcffddxxssdddd | kkkkkkkkkkkkkkkkkk |
+----+---------------------+-----------------+-----------------------------+
- 删除
$ syk remove ~/.storage 1
- 锁定
锁定会将您的存储加密和压缩,以确保其安全性。
$ syk lock ~/.storage ~/.storage_package
- 解锁
解锁会将存储解压缩并解密,以便可读。
$ syk unlock ~/.storage_package ~/.storage
依赖项
~5.5MB
~99K SLoC