Skip to content

Diceware is a method for creating passphrases, passwords, and other cryptographic variables using ordinary dice as a hardware random number generator.

License

Notifications You must be signed in to change notification settings

nouney/diceware

Repository files navigation

Diceware

Go Report Card GoDoc

Diceware is a small Golang package implementing the Diceware method. It uses word lists from the EFF

Installation

To install diceware, run the following command:

$ go get github.com/nouney/diceware

Example

package main

import (
    "fmt"
    "log"

    "github.com/nouney/diceware"
)

func main() {
    // Pick a word from the large list
    word, err := diceware.Pick(diceware.LargeList)
    if err != nil {
        panic(err)
    }

    // Generate a passphrase
    passphrase, err := diceware.Passphrase(4, diceware.LargeList)
    if err != nil {
        panic(err)
    }
}

About

Diceware is a method for creating passphrases, passwords, and other cryptographic variables using ordinary dice as a hardware random number generator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages