public string GenerateSalt(int size) { var crypto = new RNGCryptoServiceProvider(); return(crypto.GenerateSalt(size)); }