Files
watrbx-game-engine/ScriptSigner/ScriptSigner/Program.cs
T
2025-09-18 17:55:52 -04:00

27 lines
689 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ScriptSigner
{
class Program
{
static void Main(string[] args)
{
string path = "Server/RobloxWebSite/Game/rbxPrivate.blob";
while (!System.IO.File.Exists(path))
{
path = "../" + path;
}
byte[] blob = System.IO.File.ReadAllBytes(path);
foreach (string s in args)
{
string script = System.IO.File.ReadAllText(s);
System.IO.File.WriteAllText(s + ".sgnd", SharedSecurityNotary.SignScript(script, blob));
}
}
}
}