private static GenerateAuthCode ( string text ) : string | ||
text | string | |
Résultat | string |
private static string GenerateAuthCode(string text)
{
RNGCryptoServiceProvider crypto = new RNGCryptoServiceProvider(text);
byte[] auth = new byte[32];
crypto.GetNonZeroBytes(auth);
return auth.GetHashCode().ToString();
}