Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • wcf

Generating a Unique Key on using C#

Apr 28, 2011 See the question and my original answer on StackOverflow

You could use my answer to another similar question on SO: Serial numbers generation without user data

The algorithm allows to install a hidden byte in a guid (128 bits). The hidden byte could contain for example a month (from a fixed date in time, with 4 bits you can code 32 months) and a day (4 bits).

  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms