How to generate SecurityBot Text using C#

Console Application using C# to show how th generate secrutybot text


try
{
Random rnd=new Random();

const string Alphabets="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
string stest=Alphabets.Substring(rnd.Next(1,26));
string sTest=stest.Substring(0,1);
string stest1=Alphabets.Substring(rnd.Next(16,52));
string sTest1=stest1.Substring(0,1);
txtShow.Text= rnd.Next(10,99).ToString()+sTest1.ToString()+rnd.Next(2,9)+sTest.ToString();
string s="";
}
catch(Exception ex)
{
txtShow.Text= ex.Message.ToString();
}


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: