VB.NET -- Random Key Generator
Don't know if this is useful to anyone else, but I had a quick need for random strings of alphanumeric nonsense this morning, and opted to play around a create a silly class of my own to do it. Source code attached for the class. Nothing special... Used Visual Studio 2008 Express to create it.
Dim KeyGen As New RandomKeyGenerator
Dim myKey As String = KeyGen.Generate(40)
Dim myKeyWithSeparator As String = KeyGen.Generate(40, 10)
MsgBox(myKey, MsgBoxStyle.OkOnly, "New Key w/no Separator...")
MsgBox(myKeyWithSeparator, MsgBoxStyle.OkOnly, "New Key with Separator...")