Skip to content

🔑 Generate cryptographically secure, memorable passphrases using the diceware algorithm.

License

Notifications You must be signed in to change notification settings

theassyrian/passcat-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Passcat

Passcat lets you generate cryptographically secure, memorable passphrases using the diceware algorithm.

Contents

Installation

$ go get -u github.com/iamcryptoki/passcat-go/passcat

Usage

package main

import (
    "log"
    "strings"

    "github.com/iamcryptoki/passcat-go/passcat"
)

func main() {
    // Generate 8 words in French using the diceware algorithm.
    p1, err := passcat.Generate("fr", 8, 1)
    if err != nil  {
        log.Fatal(err)
    }

    log.Printf(strings.Join(p1, "-"))

    // Generate 5 passphrases in Japanese
    // using the diceware algorithm.
    p2, err := passcat.Generate("jp", 8, 5)
    if err != nil {
        log.Fatal(err)
    }

    for _, p := range p2 {
        log.Printf(strings.Join(p, "-"))
    }
}

CLI

$ go install github.com/iamcryptoki/passcat-go/cmd/passcat

Basic usage:

$ passcat
risk freckled onslaught bouncing subpar winner syndrome

Specify the number of words to use in the passphrase:

$ passcat -w 10
provoke study crease fling dispense erasable drone monkhood trilogy outboard

Specify the number of passphrases to generate:

$ passcat -p 5
shelving ample marry fiscally osmosis boogeyman shrank
judiciary said eldercare utensil moonwalk frail swifter
capacity edginess rimless passably overhang jury backlash
attic ritalin headroom repost unhinge frenzied very
untangled gallstone gender anemic willfully calorie stainless

Specify a wordlist other than EFF:

$ passcat -l fr
logiez neuve brebis mastoc ortie tentes tilts

Available wordlists

Language Code
EFF (English) eff
Dutch nl
French fr
German de
Italian it
Japanese jp
Norwegian no
Polish pl
Romanian ro
Russian ru
Spanish es
Swedish se
Turkish tr

License

This code is released under a free software license and you are welcome to fork it.

About

🔑 Generate cryptographically secure, memorable passphrases using the diceware algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages