/[RomCheater]/trunk/RomCheater.PluginFramework/Core/GuidGenerator.cs
ViewVC logotype

Contents of /trunk/RomCheater.PluginFramework/Core/GuidGenerator.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 86 - (show annotations) (download)
Wed May 9 19:41:06 2012 UTC (8 years, 6 months ago) by william
File size: 496 byte(s)
+ add support to set plugins in user settings

1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Security.Cryptography;
6
7 namespace RomCheater.PluginFramework.Core
8 {
9 public class GuidGenerator
10 {
11 public GuidGenerator(string t)
12 {
13 MD5 md5Hasher = MD5.Create();
14 byte[] data = md5Hasher.ComputeHash(Encoding.Default.GetBytes(t));
15 Guid = new Guid(data);
16 }
17 public Guid Guid { get; private set; }
18 }
19 }

  ViewVC Help
Powered by ViewVC 1.1.22