Format:
Recent snippets matching tags of Base32
static string base36Chars = "0123456789abcdefghijklmnopqrstuvwxyz"; static char[] base36CharArray = base36Chars.ToCharArray(); /// <summary> /// Encodes an integer into a string by mapping to alpha and digits (36 chars) /// chars are embedded as lower case /// /// Example: 4zx12ss /// </summary>
675 Views
no comments
private static String base32Chars = "ybndrfg8ejkmcpqxot1uwisza345h769"; private void Test() { RandomNumberGenerator rng = RandomNumberGenerator.Create(); byte[] randomBytes = new byte[7]; string uniqueID = string.Empty; uniqueID = Base32Encode(randomBytes); }
454 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
