Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
710f96e9e7 | |||
4609be7a9d | |||
57b78dc62e |
Binary file not shown.
BIN
bin/gopass-darwin-amd64-v1.2.1
Executable file
BIN
bin/gopass-darwin-amd64-v1.2.1
Executable file
Binary file not shown.
Binary file not shown.
BIN
bin/gopass-linux-386-v1.2.1
Executable file
BIN
bin/gopass-linux-386-v1.2.1
Executable file
Binary file not shown.
Binary file not shown.
BIN
bin/gopass-linux-amd64-v1.2.1
Executable file
BIN
bin/gopass-linux-amd64-v1.2.1
Executable file
Binary file not shown.
Binary file not shown.
BIN
bin/gopass-windows-386-v1.2.1
Executable file
BIN
bin/gopass-windows-386-v1.2.1
Executable file
Binary file not shown.
Binary file not shown.
BIN
bin/gopass-windows-amd64-v1.2.1
Executable file
BIN
bin/gopass-windows-amd64-v1.2.1
Executable file
Binary file not shown.
11
main.go
11
main.go
@ -1,6 +1,6 @@
|
||||
// GoPass
|
||||
// Author: Maximilian Patterson
|
||||
// Version: 1.2.0
|
||||
// Version: 1.2.1
|
||||
package main
|
||||
|
||||
import (
|
||||
@ -18,13 +18,15 @@ func main() {
|
||||
// Take in all OS arg
|
||||
args := os.Args[1:]
|
||||
if len(args) < 1 {
|
||||
panic("No password length specified! (ex: ./gopass 16)")
|
||||
println("No password length specified! (ex: ./gopass 16)")
|
||||
return
|
||||
}
|
||||
|
||||
// Convert String arg to int
|
||||
size, err := strconv.Atoi(args[0])
|
||||
if err != nil {
|
||||
panic("First argument supplied must be an integer! (ex: 16)")
|
||||
println("First argument supplied must be an integer! (ex: 16)")
|
||||
return
|
||||
}
|
||||
|
||||
// Grab second argument (if it exists) and use it as a disallowed character(s)
|
||||
@ -50,7 +52,8 @@ func main() {
|
||||
var b [8]byte
|
||||
_, err = cryptorand.Read(b[:])
|
||||
if err != nil {
|
||||
panic("Error securely seeding crypto/rand!")
|
||||
println("Error securely seeding crypto/rand!")
|
||||
return
|
||||
}
|
||||
mathrand.Seed(int64(binary.LittleEndian.Uint64(b[:])))
|
||||
|
||||
|
Reference in New Issue
Block a user