Output checksum
This commit is contained in:
parent
566382e0ad
commit
d12486bd81
@ -6,20 +6,22 @@ import (
|
||||
|
||||
"golang.org/x/crypto/ssh/terminal"
|
||||
|
||||
passage "gogs.bullercodeworks.com/brian/passage-go"
|
||||
passage "git.bullercodeworks.com/brian/passage-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var pin, door string
|
||||
p := passage.CreatePassage("")
|
||||
for i := 1; i < len(os.Args); i++ {
|
||||
switch i {
|
||||
case 1:
|
||||
pin = os.Args[i]
|
||||
p.SetPin(pin)
|
||||
fmt.Println("Checksum: " + p.GetChecksumAsString())
|
||||
case 2:
|
||||
door = os.Args[i]
|
||||
}
|
||||
}
|
||||
p := passage.CreatePassage("")
|
||||
getInput := (pin == "" && door == "")
|
||||
for getInput {
|
||||
if pin == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user