/// <summary> /// Generates a random password. /// </summary> /// <param name="pMinLength"> /// Minimum password length. /// </param> /// <param name="pMaxLength"> /// Maximum password length. /// </param> /// <returns> /// Randomly generated password. /// </returns> /// <remarks> /// The length of the generated password will be determined at /// random and it will fall with the range determined by the /// function parameters. /// </remarks> public static string GeneratePassword(int pMinLength, int pMaxLength) { return(RandomPassword.Generate(pMinLength, pMaxLength)); }
/// <summary> /// Generates a random password of the exact length. /// </summary> /// <param name="pLength"> /// Exact password length. /// </param> /// <returns> /// Randomly generated password. /// </returns> public static string GeneratePassword(int pLength) { return(RandomPassword.Generate(pLength, pLength)); }