ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.PluginFramework/Core/GuidGenerator.cs
Revision: 86
Committed: Wed May 9 19:41:06 2012 UTC (11 years ago) by william
File size: 496 byte(s)
Log Message:
+ add support to set plugins in user settings

File Contents

# User Rev Content
1 william 86 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     }