Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Secure random string
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Security.Cryptography; namespace Rextester { public class Program { private static RNGCryptoServiceProvider rngCsp = new RNGCryptoServiceProvider(); public static void Main(string[] args) { RNGCryptoServiceProvider provider = new RNGCryptoServiceProvider(); var byteArray = new byte[4]; provider.GetBytes(byteArray); //convert 4 bytes to an integer var randomInteger = BitConverter.ToString(byteArray, 0).Replace("-",""); Console.WriteLine(randomInteger); } } }
run
|
edit
|
history
|
help
1
algo1
//Json Get Field from Array
Ccc
String concat operation (+) vs StringBuilder
Armstrong
x=msgbox("Your Message Here", Button+Icon, "Your Title Here")
Programa_01_01_Declaracion_de_clases
C# INDEXER and OVERRIDE INDEXER
pankaj_sql
Morse code