차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| unity:md5 [2022/01/06 14:28] – created 61.74.132.138 | unity: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 | ||
| - | | + | |
| 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(); | ||
| } | } | ||
| - | </ | + | </ |