Elton Stoneman

  Home  |   Contact  |   Syndication    |   Login
  123 Posts | 0 Stories | 3755 Comments | 0 Trackbacks

News

Archives

Post Categories

[Source: http://geekswithblogs.net/EltonStoneman]

23 months after the original post on Generating Deterministic GUIDs, I still find myself doing it fairly often and still using the same code (MD5 may not be suitable for secure scenarios, but it's fine for generating GUIDs for normal development use).

This post contains a Silverlight widget which generates GUIDs for you on the fly:  

Get Microsoft Silverlight

Hit GUID to get a random GUID (from a call to Guid.NewGuid()), or enter text in the box to generate a GUID from the MD5 hash of its contents. It'll ask you for permission to use your clipboard, and if you agree the GUID it generates will be pasted into the clipboard.

The code (VS 2010) is on github here: Silverlight Guid Generator.

Not much to it, only noteworthy point is that Silverlight doesn't have a native MD5 provider, but there's an implementation of the algorithm on MSDN Code Gallery – Silverlight MD5 – which is correct and produces the same hash as the provider in the full .NET framework.

posted on Thursday, May 13, 2010 7:53 PM

Feedback

# re: Deterministic GUIDs – Part 2 8/10/2010 8:52 AM ipad scrapbook app
Super-Duper blog! I am loving it!! Will come back again - taking you feeds also, Keep this good work continue. thanks for sharing...

# re: Deterministic GUIDs – Part 2 9/15/2010 7:56 PM flagpoles
This is helpful. Thanks Elton.

# re: Deterministic GUIDs – Part 2 3/2/2012 12:39 AM flag poles
Wow what a great widget!

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: