CostCalculationItem/IRaCIS.Core.Application/Trial/Image/IdentifierHelper.cs

18 lines
436 B
C#

using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
namespace IRaCIS.Core.Application.Dicom
{
static class IdentifierHelper
{
private static MD5 md5 = new MD5CryptoServiceProvider();
public static Guid CreateGuid(params string[] parts)
{
return new Guid(md5.ComputeHash(Encoding.UTF8.GetBytes(string.Concat(parts))));
}
}
}