using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Security.Cryptography;
namespace Minecraft_Gift_Code_Generator
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
/*Written by Pichu https://www.nextgenupdate.com/forums/members/450946-pichu.html
*
* Visit my website at: www.TutorialsMadeSimple.org
*
* */
SHA256CryptoServiceProvider sha = new SHA256CryptoServiceProvider();
UTF32Encoding utf = new UTF32Encoding();
string value = BitConverter.ToString(sha.ComputeHash(utf.GetBytes(new Random().Next(0, 1000).ToString()))).Replace("-", "").Remove(12);
value = value.Insert(4, "-");
value = value.Insert(9, "-");
textBox1.Text = value;
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Security.Cryptography;
namespace Minecraft_Gift_Code_Generator
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
/*Written by Pichu https://www.nextgenupdate.com/forums/members/450946-pichu.html
*
* Visit my website at: www.TutorialsMadeSimple.org
*
* */
SHA256CryptoServiceProvider sha = new SHA256CryptoServiceProvider();
UTF32Encoding utf = new UTF32Encoding();
string value = BitConverter.ToString(sha.ComputeHash(utf.GetBytes(new Random().Next(0, 1000).ToString()))).Replace("-", "").Remove(12);
value = value.Insert(4, "-");
value = value.Insert(9, "-");
textBox1.Text = value;
}
}
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.