pwdgen: bitbucket.org/chai2010/pwdgen

Command pwdgen

Password generator

Usage:

pwdgen [options]... [id]...

Algorithm:

base58(sha512(md5hex(encrypt_key+encrypt_salt)+site_id+site_salt)[0:16]

Example:

pwdgen id0
pwdgen id0 id1 id2

pwdgen --encrypt-key=111 id0
pwdgen --encrypt-key=111 id0 id1 id2

pwdgen --encrypt-key=111 --encrypt-salt=fuckcsdn --site-salt=site0 id0 id1
pwdgen --encrypt-key=111 --encrypt-salt=fuckcsdn --site-salt=site0 id0 id1
pwdgen --encrypt-key=111 --encrypt-salt=fuckcsdn --site-salt=site0 id0 id1

# KeePass: See config.ini
# output: *.ini -> *.keepass1x.csv
pwdgen --keepass-config=config.ini
pwdgen --keepass-config=config.ini --encrypt-key=111
pwdgen --keepass-config=config.ini --encrypt-key=111 --encrypt-salt=fuckcsdn

pwdgen --version
pwdgen --help
pwdgen -h

Use pwdgen as a Go package:

package main

import (
	"fmt"
	pwdgen "bitbucket.org/chai2010/pwdgen"
)
func main() {
	fmt.Println(pwdgen.PwdGen("id0", "site0", "111", "fuckcsdn"))
	// Output: 2jNXfMGoXTSK9pFS
}

Report bugs to <chaishushan{AT}gmail.com>.

Directories

PathSynopsis
base58Package base58 implements a human-friendly base58 encoding.
iniPackage ini implements a simple INI file parser.

Package main imports 9 packages (graph). Updated 2013-07-23. Refresh now. Tools for package owners.