IAmXeClutch

[Project] GTA V Native Hash Tool

Jun 16th, 2014
1,828
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading;
  7. using System.Threading.Tasks;
  8.  
  9. namespace GTA_V_Native_Hash_Tool
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.             Console.Title = "GTA V Native Hash Tool by XeClutch";
  16.             Console.ForegroundColor = ConsoleColor.White;
  17.             Magic();
  18.         }
  19.  
  20.         static void Magic()
  21.         {
  22.             Console.Clear();
  23.             Print("Enter Native: ");
  24.             string native = Console.ReadLine();
  25.             uint hash = CreateHash(native);
  26.             Print("Hash: 0x" + hash.ToString("X8") + "\n\n");
  27.             Print("Press any key to restart otherwise click the exit button... ");
  28.             Console.ReadKey();
  29.             Magic();
  30.         }
  31.  
  32.         static void Print(string Text)
  33.         {
  34.             Console.Write(Text);
  35.         }
  36.  
  37.         static uint CreateHash(string Native)
  38.         {
  39.             uint num = 0;
  40.             byte[] bytes = Encoding.UTF8.GetBytes(Native);
  41.             for (int i = 0; i < bytes.Length; i++)
  42.             {
  43.                 num += bytes[i];
  44.                 num += num << 10;
  45.                 num ^= num >> 6;
  46.             }
  47.             num += num << 3;
  48.             num ^= num >> 11;
  49.             return (num + (num << 15));
  50.         }
  51.     }
  52. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×