func AskDoublePasswordPrompt(p1, p2 string) (string, error) {
	for {
		fmt.Print(p1)
		p1, err := pwdReader.ReadPassword()
		if err != nil {
			return "", err
		}
		fmt.Println("")

		fmt.Print(p2)
		p2, err := pwdReader.ReadPassword()
		if err != nil {
			return "", err
		}
		fmt.Println("")

		if bytes.Equal(p1, p2) {
			return string(p1), nil
		}

		fmt.Println("Passwords do not match. Please try again.")
	}
}
// AskDoublePasswordPrompt will ask for a password (and confirmation) on the commandline, with a custom prompt
AskDoublePasswordPrompt will ask for a password (and confirmation) on the commandline, with a custom prompt
// AskDoublePasswordPrompt will ask for a password ( and confirmation ) on the commandline with a custom prompt
func AskDoublePasswordPrompt(p1, p2 string) (string, error) {
	for {
		fmt.Print(p1)
		p1, err := pwdReader.ReadPassword()
		if err != nil {
			return "", err
		}
		fmt.Println("")
		fmt.Print(p2)
		p2, err := pwdReader.ReadPassword()
		if err != nil {
			return "", err
		}
		fmt.Println("")
		if bytes.Equal(p1, p2) {
			return string(p1), nil
		}
		fmt.Println("Passwords do not match. Please try again.")
	}
}
func AskDoublePasswordPrompt ( p1 , p2 string ) ( string , error ) { for { fmt . Print ( p1 ) p1 , err := pwdReader . ReadPassword ( ) if err != nil { return " " , err } fmt . Println ( " " ) fmt . Print ( p2 ) p2 , err := pwdReader . ReadPassword ( ) if err != nil { return " " , err } fmt . Println ( " " ) if bytes . Equal ( p1 , p2 ) { return string ( p1 ) , nil } fmt . Println ( " " ) } }
AskDoublePasswordPrompt will ask for a password (and confirmation) on the commandline, with a custom prompt
AskDoublePasswordPrompt will ask for a password ( and confirmation ) on the commandline with a custom prompt