This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.IO;
namespace Roblox.Test
{
public class ScriptSigner
{
public ScriptSigner()
{
string path = "Server/RobloxWebSite/Game/rbxPrivate.blob";
int upcount = 0;
while (!System.IO.File.Exists(path))
{
path = "../" + path;
if (upcount++ >= 10)
{
throw new FileNotFoundException("Cannot find Server/RobloxWebSite/Game/rbxPrivate.blob in any of the parent directories of the current dir");
}
}
blob = System.IO.File.ReadAllBytes(path);
}
private byte[] blob;
public string SignScript(string script)
{
return "%" + SharedSecurityNotary.CreateSignature(script, blob) + "%" + script;
}
}
}