コード例 #1
0
        static void Main(string[] args)
        {
            // Simple generate password with custom alphabet

            // 54 characters length
            // using custom alphabet
            var generator = new SinglePasswordGenerator(54, new CustomAlphabet(), "l");

            // generate password
            // returns string
            var pass = generator.Generate();

            System.Console.WriteLine(pass);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            // Simple generate password

            // 54 characters length
            // using uppercase letters, lowercase letters, symbols and digits
            var generator = new SinglePasswordGenerator(54, "ll", "ul", "d", "s");

            // generate password
            // returns string
            var pass = generator.Generate();

            System.Console.WriteLine(pass);
        }