All Projects → narekye → Password_Generator

narekye / Password_Generator

Licence: other
🔄 Simple password generator class library in C# 6.0, use for generate your own password! 📗

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to Password Generator

Qrcode
💮 amazing QRCode generator in Python (supporting animated gif) - Python amazing 二维码生成器(支持 gif 动态图片二维码)
Stars: ✭ 8,613 (+40914.29%)
Mutual labels:  picture, gif
Object Oriented Programming Using Python
Python is a multi-paradigm programming language. Meaning, it supports different programming approach. One of the popular approach to solve a programming problem is by creating objects. This is known as Object-Oriented Programming (OOP).
Stars: ✭ 183 (+771.43%)
Mutual labels:  static, class
solidus static content
📄 Content management for your Solidus store.
Stars: ✭ 18 (-14.29%)
Mutual labels:  static
see-you-again
😊 因为爱很重,我却不想懂,害怕被感动,只往反方向走,背对湿润瞳孔,你们请放纵,寻觅各自天空,如果输了,累了,记得转身回头 See You Again My Class~
Stars: ✭ 106 (+404.76%)
Mutual labels:  class
DictGenerate
使用Go语言编写的社工字典生成器(The social engineering dictionary generator written by Go)
Stars: ✭ 64 (+204.76%)
Mutual labels:  password
flutter-password-strength
A password strength checker for flutter.
Stars: ✭ 18 (-14.29%)
Mutual labels:  password
stupid-password
A library to prevent the use of easily guessed/bruteforced password and an alternative to Cracklib
Stars: ✭ 25 (+19.05%)
Mutual labels:  password
AppThinning
Make app thinner. Help you find large files and compress png, gif, jpg, svg files. 应用程序瘦身工具,帮助你找到大文件,压缩png、gif、jpg、svg等文件。
Stars: ✭ 22 (+4.76%)
Mutual labels:  gif
dotdoodl-kid-classes
Teaching materials for an intro to CSS animations for kids series.
Stars: ✭ 26 (+23.81%)
Mutual labels:  class
dot-screencap
A screencapturing library
Stars: ✭ 31 (+47.62%)
Mutual labels:  gif
core
An advanced and highly optimized Java library to build frameworks: it's useful for scanning class paths, generating classes at runtime, facilitating the use of reflection, scanning the filesystem, executing stringified source code and much more...
Stars: ✭ 100 (+376.19%)
Mutual labels:  class
competitive-rust-snippets
My Rust snippets for competitive programming
Stars: ✭ 72 (+242.86%)
Mutual labels:  snippets
GTA-One-Liners
A collection of gifs made out of almost every dialogue in GTA and other games.
Stars: ✭ 37 (+76.19%)
Mutual labels:  gif
gifter
Gif image renderer running in terminal.
Stars: ✭ 44 (+109.52%)
Mutual labels:  gif
codegif
Use Canvas API to make a gif animation
Stars: ✭ 32 (+52.38%)
Mutual labels:  gif
LunarVim
An IDE layer for Neovim with sane defaults. Completely free and community driven.
Stars: ✭ 9,296 (+44166.67%)
Mutual labels:  snippets
LocalVideoImage-selector
A simple-used local video and image selector for Android, also support single-selection and multi-selection.
Stars: ✭ 25 (+19.05%)
Mutual labels:  picture
network tech
Cisco config syntax and snippets for Sublime Text
Stars: ✭ 82 (+290.48%)
Mutual labels:  snippets
Articles
经验文章
Stars: ✭ 128 (+509.52%)
Mutual labels:  snippets
opentype-feature-bundle
Syntax highlighting and snippets for OpenType feature development in TextMate/Sublime Text
Stars: ✭ 35 (+66.67%)
Mutual labels:  snippets

C# 6.0 Visual Studio 2015 with .NET Framework 4.6 | SW version 1.0

Working with Password Generator class library.

You do not need to create a instance of Password class, because its imposible create instance of static class.

Use for generate many random passwords, which can improve you to secure somewhat.


How to add the Password class library in your project shown below.

How to add the class library Created class library with name PasswordGenerator(you must add the using PasswordGenerator;)which contains one static class which contains 1 staic field and 1 static method. Method has 1 parameter which is the length of password. In snippet shown the static class with his members.

using System; 
namespace PasswordGenerator
{
    /// <summary>
    /// This class library used for generate random passwords. 
    /// Used all digits, uppercase and downcase letters.
    /// Can send any parameter to 'Generate' method, which will generate password with sended count length.
    /// </summary>
    public static class Password
    {
        private static string pass = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
        public static string Generate(int length)
        {
            Random Rdpass = new Random();
            string password = String.Empty;
            for (int i = 0; i < length; i++)
            {
                password += pass[Rdpass.Next(0, pass.Length)];
            }
            return password;
        }
    }
}

In the solution have added new project where testing class library. The testing was completed in Console application.

using System;
using PasswordGenerator; // add this 'using' to use class library.
namespace TestPasswordGenerator
{
    class Program
    {
        static void Main()
        {
            //Parameter is lenght of your own password. Example 1.
            string mypassword = Password.Generate(4);
            Console.WriteLine(mypassword);
            // Or second one example below. Example 2
            Console.WriteLine(Password.Generate(12));
            // Delay !!
            Console.Read();
        }
    }
}

In this picture shown result of testing in console window.

Result


Whats new in second version | SW version 1.1

Added new non-static class named by HardPassword with new non-static method Generate.

You can create instance of HardPassword class using default constructor, because user constructors n class haven't added.

There is a snippet of non-static class shown below.

 public class HardPassword
 {
     private string pass = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@#$%^&*()-_=+|}{}:;',./";
     public string Generate(int length)
     {
         if (length>pass.Length)
          {
              throw new ArgumentOutOfRangeException("No much characters");
          }
          Random rdpass = new Random();
          string password = string.Empty;
          for (int i = 0; i < length; i++)
          {
              password += pass[rdpass.Next(rdpass.Next(i, pass.Length))];
          }
          return password; 
     }
}

Updated too the test project shown by Console Application.

static void Main()
{
      Console.WriteLine();
      //Parameter is lenght of your own password. Example 1.
      string mypassword = Password.Generate(45);
      Console.WriteLine("\t First password with length 4 | {0}", mypassword);
      // Or second one example below. Example 2
      Console.WriteLine("\t Second password with length 12 | {0}", Password.Generate(12));
      var mypass = new HardPassword();
      Console.WriteLine("\t Instance created by non-static class | {0}" ,mypass.Generate(34));
      // Delay !!
      Console.Read();
}

The result in Console window shown in picture. result

Updates soon.

For more information contact.


Have a fun.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].