Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. // Flag.Form1
  2. using Flag;
  3. using System;
  4. using System.ComponentModel;
  5. using System.Drawing;
  6. using System.Windows.Forms;
  7.  
  8. public class Form1 : Form
  9. {
  10. private IContainer components = null;
  11.  
  12. private TextBox textBox1;
  13.  
  14. private Button button1;
  15.  
  16. public Form1()
  17. {
  18. InitializeComponent();
  19. }
  20.  
  21. private void button1_Click(object sender, EventArgs e)
  22. {
  23. string text = "";
  24. string[] array = new string[122]
  25. {
  26. "3",
  27. "X",
  28. "N",
  29. "a",
  30. "y",
  31. "3",
  32. "L",
  33. "K",
  34. "a",
  35. "i",
  36. "r",
  37. "f",
  38. "p",
  39. "0",
  40. "n",
  41. "s",
  42. "2",
  43. "X",
  44. "p",
  45. "m",
  46. "3",
  47. "0",
  48. "l",
  49. "3",
  50. "a",
  51. "}",
  52. "_",
  53. "_",
  54. "w",
  55. "}",
  56. "d",
  57. "f",
  58. "s",
  59. "a",
  60. "v",
  61. "_",
  62. "t",
  63. "7",
  64. "r",
  65. "r",
  66. "M",
  67. "0",
  68. "W",
  69. "s",
  70. "g",
  71. "b",
  72. "h",
  73. "z",
  74. "_",
  75. "h",
  76. "n",
  77. "!",
  78. "3",
  79. "1",
  80. "2",
  81. "{",
  82. "4",
  83. "W",
  84. "l",
  85. "k",
  86. "i",
  87. "{",
  88. "3",
  89. "T",
  90. "3",
  91. "v",
  92. "n",
  93. "a",
  94. "s",
  95. "a",
  96. "t",
  97. "5",
  98. "n",
  99. "W",
  100. "a",
  101. "r",
  102. "k",
  103. "E",
  104. "@",
  105. "l",
  106. "R",
  107. "4",
  108. "0",
  109. "1",
  110. "}",
  111. "0",
  112. "t",
  113. " ",
  114. "v",
  115. "Y",
  116. "k",
  117. "h",
  118. "E",
  119. "m",
  120. "0",
  121. "E",
  122. "R",
  123. "e",
  124. "b",
  125. "3",
  126. "4",
  127. "J",
  128. "2",
  129. "z",
  130. "F",
  131. "2",
  132. "W",
  133. "I",
  134. "5",
  135. "s",
  136. "R",
  137. "7",
  138. "3",
  139. "1",
  140. "y",
  141. "0",
  142. "#",
  143. "{",
  144. "$",
  145. "p",
  146. "d",
  147. "_"
  148. };
  149. for (int i = 0; i <= 121; i += 11)
  150. {
  151. if (i != 0)
  152. {
  153. text += array[i];
  154. }
  155. }
  156. for (int j = 0; j <= 75; j += 7)
  157. {
  158. if (j != 0 && j != 13)
  159. {
  160. text += array[j];
  161. }
  162. }
  163. for (int k = 0; k <= 80; k += 13)
  164. {
  165. if (k != 0 && k != 46 && k != 79 && k != 78)
  166. {
  167. text += array[k];
  168. }
  169. }
  170. for (int l = 0; l <= 29; l += 5)
  171. {
  172. if (l != 0 && l != 31 && l != 28)
  173. {
  174. text += array[l];
  175. }
  176. }
  177. if (text.Equals(textBox1.Text))
  178. {
  179. Form2 form = new Form2();
  180. form.Show();
  181. }
  182. else
  183. {
  184. Form3 form2 = new Form3();
  185. form2.Show();
  186. }
  187. }
  188.  
  189. protected override void Dispose(bool disposing)
  190. {
  191. if (disposing && components != null)
  192. {
  193. components.Dispose();
  194. }
  195. base.Dispose(disposing);
  196. }
  197.  
  198. private void InitializeComponent()
  199. {
  200. System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(Flag.Form1));
  201. textBox1 = new System.Windows.Forms.TextBox();
  202. button1 = new System.Windows.Forms.Button();
  203. SuspendLayout();
  204. textBox1.Location = new System.Drawing.Point(63, 34);
  205. textBox1.Name = "textBox1";
  206. textBox1.Size = new System.Drawing.Size(370, 22);
  207. textBox1.TabIndex = 0;
  208. button1.Location = new System.Drawing.Point(63, 137);
  209. button1.Name = "button1";
  210. button1.Size = new System.Drawing.Size(370, 23);
  211. button1.TabIndex = 1;
  212. button1.Text = "CHECK PASSWORD";
  213. button1.UseVisualStyleBackColor = true;
  214. button1.Click += new System.EventHandler(button1_Click);
  215. base.AutoScaleDimensions = new System.Drawing.SizeF(8f, 16f);
  216. base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  217. BackgroundImage = (System.Drawing.Image)componentResourceManager.GetObject("$this.BackgroundImage");
  218. base.ClientSize = new System.Drawing.Size(503, 227);
  219. base.Controls.Add(button1);
  220. base.Controls.Add(textBox1);
  221. base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
  222. base.Name = "Form1";
  223. base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  224. Text = "VALIDATION";
  225. ResumeLayout(performLayout: false);
  226. PerformLayout();
  227. }
  228. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement