Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. /*
  2. * Created by SharpDevelop.
  3. * User: Cliente
  4. * Date: 01/12/2010
  5. * Time: 23:27
  6. *
  7. * To change this template use Tools | Options | Coding | Edit Standard Headers.
  8. */
  9. using System;
  10. using System.Collections.Generic;
  11. using System.Drawing;
  12. using System.Windows.Forms;
  13.  
  14. namespace Shiny_Password_Generator
  15. {
  16. /// <summary>
  17. /// Description of MainForm.
  18. /// </summary>
  19. public partial class MainForm : Form
  20. {
  21. public MainForm()
  22. {
  23. //
  24. // The InitializeComponent() call is required for Windows Forms designer support.
  25. //
  26. InitializeComponent();
  27.  
  28. //
  29. // TODO: Add constructor code after the InitializeComponent() call.
  30. //
  31. }
  32. string password = "";
  33. Random rand = new Random();
  34. for (int i = 0; i < length; i++)
  35. {
  36. password += (string)("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"[rand.Next(0, 55)]);
  37. }
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement