https://github.com/jsf0/smallpass
small Diceware passphrase generator
https://github.com/jsf0/smallpass
Last synced: about 1 year ago
JSON representation
small Diceware passphrase generator
- Host: GitHub
- URL: https://github.com/jsf0/smallpass
- Owner: jsf0
- License: isc
- Created: 2021-05-07T19:51:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-07T19:52:37.000Z (about 5 years ago)
- Last Synced: 2025-01-24T02:58:56.990Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://www.codacy.com/manual/jsfierro/smallpass?utm_source=github.com&utm_medium=referral&utm_content=jsfierro/smallpass&utm_campaign=Badge_Grade)
## smallpass
smallpass is a small, simple utility for generating Diceware style passphrases on the command line.
It uses the Electronic Frontier Foundation's long wordlist.
### Rationale
There are lots of these Diceware generators out there, but many of them are overly complicated, have large dependencies, or are insecure.
Smallpass is written in plain C, does not suffer from modulo bias, has no network functionality, doesn't parse any files, and has minimal
command line flags.
This allows smallpass to be locked down tightly using pledge() on OpenBSD.
### Building
smallpass builds without requiring any dependencies on the BSDs. On Linux you will need libbsd installed
(run "sudo apt-get install libbsd-dev" or the equivalent for your distribution).
To build, run:
```
$ make
```
To install the binary and man page, run:
```
# make install
```
### Usage
If run with no options, smallpass will output a 7 word passphrase. This is equivalent to about 90 bits of entropy.
Each word adds about 12.9 bits.
To specify a length, use the -n option.
For example, the following will generate a 5 word passphrase:
```
smallpass -n 5
```
The minimum number of words is 1 and the max is 128.