mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-23 07:22:52 +08:00
40 lines
983 B
C#
40 lines
983 B
C#
|
using CodeWalker.GameFiles;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Data;
|
|||
|
using System.Drawing;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using System.Windows.Forms;
|
|||
|
|
|||
|
namespace CodeWalker
|
|||
|
{
|
|||
|
public partial class JenkGenForm : Form
|
|||
|
{
|
|||
|
public JenkGenForm()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
|
|||
|
private void InputTextBox_TextChanged(object sender, EventArgs e)
|
|||
|
{
|
|||
|
GenerateHash();
|
|||
|
}
|
|||
|
|
|||
|
private void GenerateHash()
|
|||
|
{
|
|||
|
JenkHashInputEncoding encoding = JenkHashInputEncoding.UTF8;
|
|||
|
if (ASCIIRadioButton.Checked) encoding = JenkHashInputEncoding.ASCII;
|
|||
|
|
|||
|
JenkHash h = new JenkHash(InputTextBox.Text, encoding);
|
|||
|
|
|||
|
HashHexTextBox.Text = h.HashHex;
|
|||
|
HashSignedTextBox.Text = h.HashInt.ToString();
|
|||
|
HashUnsignedTextBox.Text = h.HashUint.ToString();
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|