add decoder

This commit is contained in:
Bitl 2021-09-05 12:30:56 -07:00
parent 6aa290ceff
commit c567999271
6 changed files with 2532 additions and 3 deletions

View File

@ -318,6 +318,11 @@ public class SecurityFuncs
return output;
}
public static string Decipher(string input, int key)
{
return Encipher(input, 26 - key);
}
#endif
}
#endregion

View File

@ -0,0 +1,103 @@

namespace NovetusLauncher
{
partial class Decoder
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Decoder));
this.TextEntry = new System.Windows.Forms.TextBox();
this.Shift = new System.Windows.Forms.NumericUpDown();
this.ResultBox = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.Shift)).BeginInit();
this.SuspendLayout();
//
// TextEntry
//
this.TextEntry.Location = new System.Drawing.Point(13, 13);
this.TextEntry.Name = "TextEntry";
this.TextEntry.Size = new System.Drawing.Size(174, 20);
this.TextEntry.TabIndex = 0;
this.TextEntry.TextChanged += new System.EventHandler(this.TextEntry_TextChanged);
//
// Shift
//
this.Shift.Location = new System.Drawing.Point(193, 13);
this.Shift.Maximum = new decimal(new int[] {
9,
0,
0,
0});
this.Shift.Minimum = new decimal(new int[] {
2,
0,
0,
0});
this.Shift.Name = "Shift";
this.Shift.Size = new System.Drawing.Size(32, 20);
this.Shift.TabIndex = 1;
this.Shift.Value = new decimal(new int[] {
2,
0,
0,
0});
this.Shift.ValueChanged += new System.EventHandler(this.Shift_ValueChanged);
//
// ResultBox
//
this.ResultBox.Location = new System.Drawing.Point(13, 40);
this.ResultBox.Name = "ResultBox";
this.ResultBox.Size = new System.Drawing.Size(212, 20);
this.ResultBox.TabIndex = 2;
//
// Decoder
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.ClientSize = new System.Drawing.Size(241, 72);
this.Controls.Add(this.ResultBox);
this.Controls.Add(this.Shift);
this.Controls.Add(this.TextEntry);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "Decoder";
this.Load += new System.EventHandler(this.Decoder_Load);
((System.ComponentModel.ISupportInitialize)(this.Shift)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox TextEntry;
private System.Windows.Forms.NumericUpDown Shift;
private System.Windows.Forms.TextBox ResultBox;
}
}

View File

@ -0,0 +1,27 @@
using System.Windows.Forms;
namespace NovetusLauncher
{
public partial class Decoder : Form
{
public Decoder()
{
InitializeComponent();
}
private void Decoder_Load(object sender, System.EventArgs e)
{
CenterToScreen();
}
private void TextEntry_TextChanged(object sender, System.EventArgs e)
{
ResultBox.Text = SecurityFuncs.Decipher(TextEntry.Text, (int)Shift.Value);
}
private void Shift_ValueChanged(object sender, System.EventArgs e)
{
ResultBox.Text = SecurityFuncs.Decipher(TextEntry.Text, (int)Shift.Value);
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -607,9 +607,10 @@ namespace NovetusLauncher
GlobalFuncs.ConsolePrint("ADMIN MODE ENABLED.", 4, ConsoleBox);
GlobalFuncs.ConsolePrint("YOU ARE GOD.", 2, ConsoleBox);
break;
case string adminRegen when string.Compare(adminRegen, "regen", true, CultureInfo.InvariantCulture) == 0:
SetupImportantData();
GlobalFuncs.ConsolePrint("Command is either not registered or valid", 2, ConsoleBox);
case string decode when string.Compare(decode, "decode", true, CultureInfo.InvariantCulture) == 0:
Decoder de = new Decoder();
de.Show();
GlobalFuncs.ConsolePrint("???", 2, ConsoleBox);
break;
default:
GlobalFuncs.ConsolePrint("Command is either not registered or valid", 2, ConsoleBox);

View File

@ -154,6 +154,12 @@
<Compile Include="Classes\LocalVars.cs" />
<Compile Include="Classes\SDK\Downloader.cs" />
<Compile Include="Classes\SDK\ROBLOXFileTypes.cs" />
<Compile Include="Forms\Decoder.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Decoder.Designer.cs">
<DependentUpon>Decoder.cs</DependentUpon>
</Compile>
<Compile Include="Forms\CustomGraphicsOptions.cs">
<SubType>Form</SubType>
</Compile>
@ -253,6 +259,9 @@
<EmbeddedResource Include="Forms\CustomGraphicsOptions.resx">
<DependentUpon>CustomGraphicsOptions.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Decoder.resx">
<DependentUpon>Decoder.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\LauncherForm\Compact\LauncherFormCompact.resx">
<DependentUpon>LauncherFormCompact.cs</DependentUpon>
</EmbeddedResource>