Skip to content

Library which allows users to quickly generate secure passwords and tokens with ability to specify creation parameters

License

Notifications You must be signed in to change notification settings

ghostrider0470/CryptX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CryptX

Allows you to quickly generate secure passwords and tokens in three steps

Installation:

NuGet Package:

Description Link
NuGet Page https://www.nuget.org/packages/CryptX/
Download NuGet Package https://www.nuget.org/api/v2/package/CryptX

Usage:

1st Option: (Quick and Easy)

// Step one: Instantiate the generator
KeyGenerator generator = new KeyGenerator();

// Step one: Generate the key
generator.GenerateKey();

// Step three: Obtain the key
var key = generator.GetKey();

2nd Option: (Parametarized approach)

The constructor has optional parameters

// Step one: Instantiate the generator
KeyGenerator generator = new KeyGenerator(
includeLowercase: true, // default
includeUppercase:true,  // default
includeNumeric: true,  // default
includeSpecial:true,  // default
keyLength: 12);  // default

// Step one: Generate the key
generator.GenerateKey();

// Step three: Obtain the key
var key = generator.GetKey();

Additional Options:

Propeties:

  // Returns the number of the included character sets which will be used in key generation
  generator.IncludesCount
  // Gets the number of the unique characters in the all the charsets combined
  generator.NumberOfUniqueChars
  // Sets or Gets the value which represents the length of the key that will be generated
  generator.KeyLength

About

Library which allows users to quickly generate secure passwords and tokens with ability to specify creation parameters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages