Passage Library Works
This commit is contained in:
1
gopass-cmd/.gitignore
vendored
Normal file
1
gopass-cmd/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
gopass-cmd
|
18
gopass-cmd/main.go
Normal file
18
gopass-cmd/main.go
Normal 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]))
|
||||
}
|
Reference in New Issue
Block a user