Generating the Random Key in c#
Generating the Random Key in c#
The RandomNumber class defined in the .NET Framework class library provides functionality to generate random key. Create the static class with name KeyGenerator. Declare the static readonly three char arrays. Define the static method GenerateRandomKey with parameters minimum length for random key, maximum length for random key, in random key weather allow the characters, allow the numbers and allow the symbols.
By Rao B Popularity (3860 Views)