Created
September 9, 2015 17:40
-
-
Save reedobrien/6a0263dc29c628776038 to your computer and use it in GitHub Desktop.
Generate a random password from words list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a random passowrd from words file | |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"math/rand" | |
"os" | |
"strings" | |
"time" | |
) | |
func main() { | |
dict, err := os.Open("/usr/share/dict/words") | |
if err != nil { | |
log.Fatal(err) | |
} | |
defer dict.Close() | |
var words []string | |
scanner := bufio.NewScanner(dict) | |
for scanner.Scan() { | |
word := scanner.Text() | |
words = append(words, word) | |
} | |
var chosen []string | |
for i := 0; i < 3; i++ { | |
rand.Seed(time.Now().UTC().UnixNano()) | |
chosen = append(chosen, words[rand.Intn(len(words))]) | |
} | |
fmt.Println(strings.Join(chosen, " ")) | |
} |
one quastion i need signapk for cracking account telegram where i can find
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi iwant wordlist just for crack password facebook by Zhacker.pl ....i need help for this