Fix Base64 parse

This commit is contained in:
2021-06-05 11:44:58 +02:00
parent 2af811873b
commit 3b1755b793
5 changed files with 11 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@@ -135,7 +136,11 @@ namespace Akari.Prototype.Server.Services
return;
}
_fingerprintManager.VerifyFingerprint(text[..splitIndex], text[(splitIndex + 1)..]);
var handle = GCHandle.Alloc(text, GCHandleType.Pinned);
_fingerprintManager.VerifyFingerprint(text[..splitIndex], Convert.FromBase64String(text[(splitIndex + 1)..]));
handle.Free();
}
public override void Dispose()