예제 #1
0
        //void unlockKeyNameComBox()
        //{
        //    if (checkBox8.Checked)
        //    {
        //        comboBox3.Enabled = true;
        //    }
        //    else
        //    {
        //        comboBox3.Enabled = false;
        //    }
        //}

        void generateString(int txtBox)
        {
            if (txtBox == 0)
            {
                textBox5.Text = PasswordGenerator.generate(16);
            }
            else if (txtBox == 1)
            {
                int length = (int)numericUpDown2.Value;
                textBox4.Text = PasswordGenerator.generate(length);
            }
        }
예제 #2
0
 void generateInitialValue()
 {
     textBox3.Text = PasswordGenerator.generate(16);
 }
예제 #3
0
        void generateSalt()
        {
            int saltLength = (int)numericUpDown2.Value;

            textBox4.Text = PasswordGenerator.generate(saltLength);
        }
예제 #4
0
        string generateRadomString(int length)
        {
            string password = PasswordGenerator.generate(length);

            return(password);
        }