An open API service indexing awesome lists of open source software.

https://github.com/kizzycode/diceware-swift

An implementation of the popular diceware method (https://en.wikipedia.org/wiki/Diceware)
https://github.com/kizzycode/diceware-swift

Last synced: about 2 months ago
JSON representation

An implementation of the popular diceware method (https://en.wikipedia.org/wiki/Diceware)

Awesome Lists containing this project

README

        

[![License BSD-2-Clause](https://img.shields.io/badge/License-BSD--2--Clause-blue.svg)](https://opensource.org/licenses/BSD-2-Clause)
[![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![AppVeyor CI](https://ci.appveyor.com/api/projects/status/github/KizzyCode/diceware-swift?svg=true)](https://ci.appveyor.com/project/KizzyCode/diceware-swift)

# Diceware

An implementation of the popular [diceware method](https://en.wikipedia.org/wiki/Diceware)

## Example

### Package
```swift
/// Generate a random password with at least 2^256 possibilities
let password = Diceware.random(securityBits: 256)
print("Password:", password)
```

### Binary
```sh
$ diceware
kebab.denture.deploy.devourer.unsaved.hungry.willing.unsmooth.contrite.resort
```