4 个版本 (稳定)
1.0.2 | 2023年11月6日 |
---|---|
1.0.1 | 2023年11月4日 |
0.1.0 | 2023年11月4日 |
在 身份验证 中排名 248
350KB
190 行
包含 (Mach-o 可执行文件, 510KB) 主
oxiDice
一个简单的 CLI 工具,可以生成密码,可以是代码或短语,具有可定制的功能,以选择适合您需求的密码。
功能
- 密码
- 字母数字密码
- 可以添加/删除数字和/或特殊字符
- 短语
- 基于 diceware 的概念
- 从 5 个骰子中选择单词
- 熵
- 计算生成的密码的关联熵
- $E = log_{2}(R^L)$
- E $\to$ 密码熵
- R $\to$ 唯一 字符的数量
- L $\to$ 生成的密码长度
安装
- 设置 Rust
- 导航到任意目录
- 通过 Cargo 安装
cargo install oxiDice
- 见下文使用方法!
使用方法
Usage: oxiDice [OPTIONS]
Options:
-t, --type <type> What would you like to generate [default: phrase] [possible values: code, phrase]
-l, --length <length> Specify the length of the passcode. [default: 10]
-n, --numbers Specify whether to use numbers [0-9] or not. [default: true]
-s, --special Specify whether to use special characters or not. [default: true]
-w, --words <words> Number of words to generate for diceware [default: 5]
-d, --delimiter <delimiter> Delimiter to use between words. [default: -]
-#, --count <count> Number of passes to generate. [default: 10]
-h, --help Print help (see more with '--help')
依赖项
~1.5–2.1MB
~39K SLoC