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