Diablo 3 Cipher

Homura Sep 5, 2013

  1. Homura

    Homura Creator of Avalon XPG Developer Lifetime Gold
    0/47

    Joined:
    Mar 8, 2011
    Messages:
    857
    Likes Received:
    789
    Trophy Points:
    85
    Gender:
    Male
    Location:
    Wouldn't you like to know.
    Console:
    Xbox
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace AvalonIO.Algorithms
    {
    class Diablo3Cipher
    {
    private int Cipher(byte[] buffer, uint length)
    {
    ulong iv = 0x2EC9A01B305F92D8;

    if (buffer == null)
    return -1;

    for (int i = 0; i < length; i++)
    {
    ulong temp = buffer ^ (iv & 0xFF);
    buffer = Convert.ToByte(temp & 0xFF);

    iv = ((iv ^ buffer) << 56) | (iv >> 8);
    }

    // success
    return 0;
    }
    }
    }

    Enjoy and give credit to me if you use.
     
    • Like Like x 2
  2. gold972

    gold972 团队XPG影响 Effect XPG Developer TeamXPG
    205/282

    Joined:
    Dec 6, 2010
    Messages:
    6,834
    Likes Received:
    14,874
    Trophy Points:
    205
    Gender:
    Male
    Location:
    France Kernal XDK
    Console:
    Xbox
    awesome job ;) homura
     
    • Like Like x 1
  3. Homura

    Homura Creator of Avalon XPG Developer Lifetime Gold
    85/94

    Joined:
    Mar 8, 2011
    Messages:
    857
    Likes Received:
    789
    Trophy Points:
    85
    Gender:
    Male
    Location:
    Wouldn't you like to know.
    Console:
    Xbox
    Nah, this games cipher was simple ;)
    But yeah the way I reversed it is nice and clean ;)
     
    • Like Like x 1
  4. sensi420

    sensi420 Contributor TeamXPG
    205/282

    Joined:
    May 20, 2012
    Messages:
    2,535
    Likes Received:
    5,093
    Trophy Points:
    205
    Location:
    In your kitchen drinking your MILK!!!
    Console:
    Xbox
    Looks good, great share
     
  5. Homura

    Homura Creator of Avalon XPG Developer Lifetime Gold
    85/94

    Joined:
    Mar 8, 2011
    Messages:
    857
    Likes Received:
    789
    Trophy Points:
    85
    Gender:
    Male
    Location:
    Wouldn't you like to know.
    Console:
    Xbox
    Thanks :) It was an easy Cipher to Reverse :) just found it in IDA and reversed it.
     
  6. Ac

    AceeZ Newbie
    0/47

    Joined:
    Sep 7, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    How to use it? :D
     
  7. Homura

    Homura Creator of Avalon XPG Developer Lifetime Gold
    85/94

    Joined:
    Mar 8, 2011
    Messages:
    857
    Likes Received:
    789
    Trophy Points:
    85
    Gender:
    Male
    Location:
    Wouldn't you like to know.
    Console:
    Xbox
    well first learn C# or secondly just paste it in a .cs class and compile as a .dll and use in what ever language you do, but I didn't give out the encryption, it only decrypts, to encrypt it is same exact code but you need to make it save the byte to use with the IV.
     

Share This Page

Close