private string createHash(DataEntityHandle handle, string context) { string text = null; if (dataEntityCollection.TryGetComponent <AvatarDetailsData>(handle, out var component) && component.Outfit != null) { string displayName = dataEntityCollection.GetComponent <DisplayNameData>(handle).DisplayName; AvatarDetailsHashable data = new AvatarDetailsHashable(component, displayName, context); return(MD5HashUtil.GetHash(data)); } throw new ArgumentException("Data entity handle did not have valid avatar details"); }
public static string Id(string userName) { return(MD5HashUtil.GetHash(userName.ToLowerInvariant())); }