Beispiel #1
0
        void generatePassword()
        {
            int    charCount = (int)numericUpDown1.Value;
            string password  = PasswordGenerator.generate(charCount);

            textBox1.Text = password;
            textBox2.Text = password;
            Clipboard.SetText(password);
        }
Beispiel #2
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);
            }
        }
Beispiel #3
0
 void generateInitialValue()
 {
     textBox3.Text = PasswordGenerator.generate(16);
 }
Beispiel #4
0
        void generateSalt()
        {
            int saltLength = (int)numericUpDown2.Value;

            textBox4.Text = PasswordGenerator.generate(saltLength);
        }
Beispiel #5
0
        string generateRadomString(int length)
        {
            string password = PasswordGenerator.generate(length);

            return(password);
        }