Skip to content

Commit ee72dcf

Browse files
committed
fix: use lowercase md5 in password hash
1 parent 42dd3c8 commit ee72dcf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CameraCaptureBot.Core/BotHost.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.IO.IsolatedStorage;
2-
using System.Net.Mime;
32
using System.Runtime.CompilerServices;
43
using System.Security.Cryptography;
54
using System.Text;
@@ -230,7 +229,7 @@ private async Task ProcessBotOnline(BotContext bot, BotOnlineEvent _)
230229
var buffer = new char[hashData.Length * 2 + 1];
231230
for (var i = 0; i < hashData.Length; i += 2)
232231
{
233-
var twoChar = ToCharsBuffer(hashData[i]);
232+
var twoChar = ToCharsBuffer(hashData[i], 0x200020u);
234233
buffer[i] = (char)(twoChar >> 8);
235234
buffer[i + 1] = (char)(twoChar & 0x00FFu);
236235
}

0 commit comments

Comments
 (0)