C#根据哈希算法生成类似uuid字符串

new Guid(System.Security.Cryptography.SHA256.Create().ComputeHash(Encoding.UTF8.GetBytes(itemChild.childId.ToString())).Take(16).ToArray()).ToString()
posted @ 2024-04-09 21:07  半、枫  阅读(37)  评论(0)    收藏  举报