c# donet 可以为以下 java 代码生成相同的 UUID 吗?如果是这样怎么办?我试过 GUID 但没有用!
文本:
String cleartext = "CN=CompanyName;mac=some mac;@host=somehost;email=admin@somedomain.com;issued=01/01/20013;expire=12/12/2013";
Java代码:
UUID uuid = UUID.nameUUIDFromBytes(cleartext.getBytes("UTF-8"));
C#代码:
byte[] b = System.Text.Encoding.UTF8.GetBytes(cleartext);
Guid uid = new Guid(b);
Console.Write(uid.ToString());
REF 早期讨论