Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- namespace GTA_V_Native_Hash_Tool
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Title = "GTA V Native Hash Tool by XeClutch";
- Console.ForegroundColor = ConsoleColor.White;
- Magic();
- }
- static void Magic()
- {
- Console.Clear();
- Print("Enter Native: ");
- string native = Console.ReadLine();
- uint hash = CreateHash(native);
- Print("Hash: 0x" + hash.ToString("X8") + "\n\n");
- Print("Press any key to restart otherwise click the exit button... ");
- Console.ReadKey();
- Magic();
- }
- static void Print(string Text)
- {
- Console.Write(Text);
- }
- static uint CreateHash(string Native)
- {
- uint num = 0;
- byte[] bytes = Encoding.UTF8.GetBytes(Native);
- for (int i = 0; i < bytes.Length; i++)
- {
- num += bytes[i];
- num += num << 10;
- num ^= num >> 6;
- }
- num += num << 3;
- num ^= num >> 11;
- return (num + (num << 15));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement