차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

unity:md5 [2022/01/06 14:28] – created 61.74.132.138unity:md5 [2022/01/06 14:31] (현재) 61.74.132.138
줄 5: 줄 5:
 string GetHash(string usedString) string GetHash(string usedString)
 { //Create a Hash to send to server { //Create a Hash to send to server
-    MD5 md5 = MD5.Create();+    var md5 = new MD5CryptoServiceProvider();
     byte[] bytes = Encoding.UTF8.GetBytes(usedString + secretKey);     byte[] bytes = Encoding.UTF8.GetBytes(usedString + secretKey);
     byte[] hash = md5.ComputeHash(bytes);     byte[] hash = md5.ComputeHash(bytes);
줄 16: 줄 16:
     return sb.ToString();     return sb.ToString();
 } }
-</file>+</file> (([[https://stackoverflow.com/questions/30055358/md5-gethash-work-only-in-unity-editor/33568064|출처]]))