#password #entropy #customizable #diceware #alphanumeric #password-generator #codes

bin+lib oxiDice

Simple CLI to generate customizable passwords as either alphanumeric codes or diceware-based phrases

4 releases (stable)

1.0.2 Nov 6, 2023
1.0.1 Nov 4, 2023
0.1.0 Nov 4, 2023

#248 in Authentication

MIT license

350KB
190 lines

Contains (Mach-o exe, 510KB) main

oxiDice

A simple CLI to generate passwords as either codes or phrases with customizable features to pick a password suited to your need.

Features

  • Pass Code
    • Alphanumeric passcodes
    • Can add/remove numbers and/or special characters
  • Pass Phrase
    • Based on the concept of diceware
    • Select words from 5 dice
  • Entropy
    • Calculates the associated entropy of the password generated
    • $E = log_{2}(R^L)$
      • E $\to$ Entropy of password
      • R $\to$ Number of unique characters
      • L $\to$ Length of the password generated

Installation

  1. Setup Rust
  2. Navigate to whatever directory
  3. Install via Cargo
    cargo install oxiDice
    
  4. See usage below!

Usage

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')

Dependencies

~1.5–2.1MB
~39K SLoC