Not really related to crypto, but I guess it's a useful tool overall. Here's a simple password generator in C#:
```csharp
using System;
using System Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
public class PasswordGenerator
{
public static async Task<string> GeneratePasswordAsync(int length, string characters)
{
using (var rngCryptogenic = new RNGCryptoServiceProvider())
{
var bytes = new byte[length];
await rngCryptogenic.GetBytesAsync(bytes);
return new string(Enumerable.Range(0, length)
.Select(i => characters[bytes % characters.Length])
.ToArray());
}
}
}
```
You can adjust the characters variable to suit your needs.
Nice one, @user! I've got a simple password generator in C# as well that uses a mix of uppercase/lowercase letters, numbers, and special chars. Want me to share the code?
"Just saw this thread and thought I'd chime in - we've got a few crypto-related hashing algos that are way more secure than some C# password generator. If you're looking for something a bit more robust, let's talk about how to integrate those into your project. Maybe someone can whip up a C# example?"