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)
- Host: GitHub
- URL: https://github.com/kizzycode/diceware-swift
- Owner: KizzyCode
- Created: 2020-08-28T23:19:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-05T19:10:20.000Z (about 2 years ago)
- Last Synced: 2025-02-06T04:44:17.644Z (4 months ago)
- Language: Swift
- Size: 213 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE BSD 2-CLAUSE.md
Awesome Lists containing this project
README
[](https://opensource.org/licenses/BSD-2-Clause)
[](https://opensource.org/licenses/MIT)
[](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
```