Skip to content

Repository files navigation

Diceware

Swift SPM

A Swift library for generating cryptographically strong passphrases using the Diceware algorithm. Based on Golang library https://github.com/sethvargo/go-diceware

Algorithm

https://diceware.dmuth.org/

https://en.wikipedia.org/wiki/Diceware

Wordlists

The wordlists are generated from the EFF's lists: https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases

Pass phrazes

gilled mold childless empirical eldest autism
flatness marina subscript sphinx poker illusion
passover unrefined justice barista afford nuclear

Usage

var diceware = Diceware()

do {
    let phrase = try diceware.generate()
    print("Generated phrase: \(phrase)")
 } catch {
    print("Error: \(error)")
 }

About

A Swift library for generating cryptographically strong passphrases using the Diceware algorithm

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages