An XKCD style password generator for C#
Randomly returns a given number of words from the EFF Large Wordlist
Idea based of XKCD 936
using XCKDPasswordGen;
public class Program(){
var fourWordPassword = XkcdPasswordGen.Generate(4);
Console.WriteLine("4 random words: " + fourWordPassword);
var dashPassword = XkcdPasswordGen.Generate(4, "-");
Console.WriteLine("4 random words separated by a dash: " + dashPassword);
}
Option | Description |
---|---|
numWords | Number of words to be included in the generated password. |
separator | String to go inbetween each word in the generated password. |
crypto | Use cryptographicaly secure random number generator (Slower than standard random number generator). |