thinking of making a little modification to my login form instead of putting the pasword in my code as a variable is there a way i can encrypt it and store it in a text file so every time i want to login it compares the the password from the text file??
private void button1_Click(object sender, EventArgs e)
        {
            string username1 = "Richard";
            string password1 = "Peugeot";
            if (this.textBox1.Text == username1 && this.textBox2.Text == password1)
            {
                MessageBox.Show("Welcome Richard!", "Welcome");
                Form1 frm = new Form1();
                frm.Show();
                this.Hide();
            }
            else
                MessageBox.Show("Incorrect username or password", "Bad credentials");
        }
 
     
     
    