Passage Library Works

This commit is contained in:
2017-01-25 11:58:37 -06:00
parent 3b416e625b
commit f37377dd63
3 changed files with 88 additions and 0 deletions

1
gopass-cmd/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
gopass-cmd

18
gopass-cmd/main.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"fmt"
"os"
passage "gogs.bullercodeworks.com/brian/passage-go"
)
func main() {
if len(os.Args) < 3 {
fmt.Println("Usage: gopass <pin> <door>")
os.Exit(1)
}
p := passage.CreatePassage(os.Args[1])
fmt.Println("Checksum: " + p.GetChecksumAsString())
fmt.Println("Password: " + p.GetPassword(os.Args[2]))
}