diff --git a/main.go b/main.go index 4c3082b..b9479c4 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "log" "os" "strconv" + //"time" ) // {firstname}_{firstname backwards}_{randomly generated integer between 1 and 1,000,000,000} @@ -42,12 +43,12 @@ func writer(name string, low int, high int) { defer file.Close() reverseName := reverseString(name) - fmt.Println(name, reverseName) - os.Exit(2) - - for i := low; i < high; i++ { - //nameToWrite := name - file.WriteString(name) + nameToWrite := fmt.Sprintf("%v_%v_", name, reverseName) + //fmt.Println(name, reverseName, nameToWrite) + for i := low; i <= high; i++ { + fmt.Printf("Writing \"%v%v\" to passwords.txt...\n", nameToWrite, i) + file.WriteString(nameToWrite + fmt.Sprintln(i)) + //time.Sleep(time.Millisecond * 50) } }