mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 06:16:05 +02:00
Avatar image uploader
This commit is contained in:
@@ -12,6 +12,7 @@ using System.Management;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
using System.Net;
|
||||
using Windows.UI.Notifications;
|
||||
using Windows.Data.Xml.Dom;
|
||||
@@ -27,6 +28,13 @@ namespace VRCX
|
||||
Instance = new AppApi();
|
||||
}
|
||||
|
||||
public string MD5File(string Blob)
|
||||
{
|
||||
byte[] fileData = Convert.FromBase64CharArray(Blob.ToCharArray(), 0, Blob.Length);
|
||||
byte[] md5 = MD5.Create().ComputeHash(fileData);
|
||||
return System.Convert.ToBase64String(md5);
|
||||
}
|
||||
|
||||
public void ShowDevTools()
|
||||
{
|
||||
MainForm.Instance.Browser.ShowDevTools();
|
||||
|
||||
Reference in New Issue
Block a user