44 个版本
新增 0.5.0 | 2024年8月22日 |
---|---|
0.4.5 | 2024年6月6日 |
0.4.4 | 2024年3月1日 |
0.4.0 | 2023年12月15日 |
0.0.1-alpha.8 | 2020年11月16日 |
#231 在 密码学
3,239 每月下载量
用于 27 个crate (2 个直接使用)
320KB
7K SLoC
lair_keystore
秘密的lair私钥存储库
此crate主要提供 lair-keystore
可执行文件,允许初始化、配置和运行lair存储库。
如果您想运行一个进程内的存储库,此crate还提供了标准的sqlite存储。
有关在客户端应用程序中使用lair存储库的信息,请参阅lair_keystore_api crate。
Rust 对破折号和下划线的约定
- 使用下划线安装:
cargo install lair_keystore
- 使用破折号使用二进制:
$ lair-keystore help
- Cargo.toml 使用下划线
[dependencies]
lair_keystore = "0.1.1"
- 库使用下划线
use lair_keystore::*;
lair-keystore
命令行可执行文件使用
许可:MIT OR Apache-2.0
lair-keystore--帮助
lair_keystore 0.5.0
secret lair private keystore
USAGE:
lair-keystore [OPTIONS] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-r, --lair-root <lair-root> Lair root storage and config directory [env: LAIR_ROOT=] [default: .]
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
import-seed Load a seed bundle into this lair-keystore instance.
Note, this operation requires capturing the pid_file,
make sure you do not have a lair-server running.
Note, we currently only support importing seed bundles
with a pwhash cipher. We'll try the passphrase you
supply with all ciphers used to lock the bundle.
init Set up a new lair private keystore.
server Run a lair keystore server instance. Note you must
have initialized a config file first with
'lair-keystore init'.
url Print the connection_url for a configured lair-keystore
server to stdout and exit.
lair-keystore init--帮助
lair-keystore-init 0.5.0
Set up a new lair private keystore.
USAGE:
lair-keystore init [FLAGS]
FLAGS:
-h, --help Prints help information
-p, --piped Instead of the normal "interactive" method of passphrase
retrieval, read the passphrase from stdin. Be careful
how you make use of this, as it could be less secure,
for example, make sure it is not saved in your
`~/.bash_history`.
-V, --version Prints version information
lair-keystore url--帮助
lair-keystore-url 0.5.0
Print the connection_url for a configured lair-keystore
server to stdout and exit.
USAGE:
lair-keystore url
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
lair-keystore import-种子--帮助
lair-keystore-import-seed 0.5.0
Load a seed bundle into this lair-keystore instance.
Note, this operation requires capturing the pid_file,
make sure you do not have a lair-server running.
Note, we currently only support importing seed bundles
with a pwhash cipher. We'll try the passphrase you
supply with all ciphers used to lock the bundle.
USAGE:
lair-keystore import-seed [FLAGS] <tag> <seed-bundle-base64>
FLAGS:
-d, --deep-lock Specify that this seed should be loaded as a
"deep-locked" seed. This seed will require an
additional passphrase specified at access time
(signature / box / key derivation) to decrypt the seed.
-e, --exportable Mark this seed as "exportable" indicating
this key can be extracted again after having
been imported.
-h, --help Prints help information
-p, --piped Instead of the normal "interactive" method of passphrase
retreival, read the passphrase from stdin. Be careful
how you make use of this, as it could be less secure.
Passphrases are newline delimited in this order:
- 1 - keystore unlock passphrase
- 2 - bundle unlock passphrase
- 3 - deep lock passphrase
(if -d / --deep-lock is specified)
-V, --version Prints version information
ARGS:
<tag> The identification tag for this seed.
<seed-bundle-base64> The base64url encoded hc_seed_bundle.
lair-keystore server--帮助
lair-keystore-server 0.5.0
Run a lair keystore server instance. Note you must
have initialized a config file first with
'lair-keystore init'.
USAGE:
lair-keystore server [FLAGS]
FLAGS:
-h, --help Prints help information
-p, --piped Instead of the normal "interactive" method of passphrase
retreival, read the passphrase from stdin. Be careful
how you make use of this, as it could be less secure,
for example, make sure it is not saved in your
`~/.bash_history`.
-V, --version Prints version information
依赖
~43–76MB
~1.5M SLoC