Table of Contents

Class RandomHelper

Espace de noms
SecureExchangesSDK.Helpers
Assembly
SecureExchangesSDK.NetCore.dll

Helper to generate random string

public static class RandomHelper
Héritage
RandomHelper
Membres hérités

Fields

LOWER_CHARS

lower alpha char

public const string LOWER_CHARS = "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"

Valeur du champ

string

NUMERIC_CHARS

Numeric const

public const string NUMERIC_CHARS = "0,1,2,3,4,5,6,7,8,9"

Valeur du champ

string

SPECIAL_CHARS

Special schar

public const string SPECIAL_CHARS = "!,$,*,@,#,<,>,[,]"

Valeur du champ

string

UPPER_CHARS

Upper chars

public const string UPPER_CHARS = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z"

Valeur du champ

string

Properties

ALPHAS_CHARS

Alpha string, with case sensitive

public static string ALPHAS_CHARS { get; }

Valeur de la propriété

string

Methods

CombineCharsList(params string[])

Combiene multiple list into one

public static string CombineCharsList(params string[] list)

Paramètres

list string[]

Retour

string

GenerateCode(int)

Generate code with number only

public static string GenerateCode(int length)

Paramètres

length int

Length of the generated number

Retour

string

GenerateCode(int, string)

public static string GenerateCode(int length, string charString)

Paramètres

length int
charString string

Retour

string

GenerateComplexPassword(int)

Generate password with numeric, special chars and alphachars

public static string GenerateComplexPassword(int length)

Paramètres

length int

The lenght of the string

Retour

string

GeneratePasswordWithPolicy(BusinessPasswordSuggestionPolicy)

That will generate password by policy

public static string GeneratePasswordWithPolicy(BusinessPasswordSuggestionPolicy policy)

Paramètres

policy BusinessPasswordSuggestionPolicy

Retour

string

Next(int, int)

public static int Next(int minValue, int maxExclusiveValue)

Paramètres

minValue int
maxExclusiveValue int

Retour

int