Welcome to the RaGEZONE - MMORPG development forums.

R63 Crypto In java

This is a discussion on R63 Crypto In java within the Habbo Releases forums, part of the Habbo Hotel category; PHP Code: /*  *****************  * @author capos *  ***************** */   public final class  HabboRC4 {     private  int i  =  0 ;     private  int j  =  0 ...

LyncusMU
Results 1 to 8 of 8
  1. #1
    Creative One.
    Rank
    Member +
    Join Date
    Oct 2011
    Location
    Your Router
    Posts
    461
    Liked
    162

    R63 Crypto In java

    Tabo Hotel
    PHP Code:
    /*
     *****************
     * @author capos *
     *****************
    */
     
    public final class HabboRC4
    {
        private 
    int i 0;
        private 
    int j 0;
        private 
    int[] Table;
       
        public 
    void HabboRC4()
        {
            
    this.Table = new int[256];
        }
           
        private 
    void Swamp(int arg1int arg2)
        {
            
    int k this.Table[arg1];
            
    this.Table[arg1] = this.Table[arg2];
            
    this.Table[arg2] = k;
        }
       
        public 
    void init(byte[] arg1)
        {
            
    int k arg1.length;
            
    this.0;
            while (
    this.256)
            {
                
    this.Table[this.i] = this.i;
                
    this.i++;
            }
            
    this.0;
            
    this.0;
            while (
    this.0x0100)
            {
                
    this.= (((this.this.Table[this.i]) + arg1[(this.k)]) % 256);
                
    this.Swamp(this.ithis.j);
                
    this.i++;
            }
            
    this.0;
            
    this.0;
        }
       
        private 
    byte[] encipher(byte[] arg1)
        {
            
    int k1;
            
    byte[] null;
            
    int pos 0;
           
            for(
    int a 0;a<arg1.length;a++)
            {
                
    this.= ((this.1) % 256);
                
    this.= ((this.this.Table[this.i]) % 256);
                
    this.Swamp(this.ithis.j);
                
    k1 = ((this.Table[this.i] + this.Table[this.j]) % 256);
                
    k[pos++] = (byte) (this.Table[k1] ^ arg1[a]);
            }
            return (
    k);
        }
       
        public 
    byte[] decipher(byte[] arg1)
        {
            
    int k1;
            
    byte[] null;
            
    int pos 0;
           
            for(
    int a 0;a<arg1.length;a++)
            {
                
    this.= ((this.1) % 256);
                
    this.= ((this.this.Table[this.i]) % 256);
                
    this.Swamp(this.ithis.j);
                
    k1 = ((this.Table[this.i] + this.Table[this.j]) % 256);
                
    k[pos++] = (byte) ((arg1[a] ^ this.Table[k1]));
            }
           
            return (
    k);
        }

    Last edited by Makarov; 10-02-12 at 11:30 PM.

  2. HostKey.com: Unmetered Dedicated servers in the Netherlands
  3. #2
    Otaku Studios
    Rank
    Subscriber
    Join Date
    Feb 2007
    Location
    England
    Posts
    1,605
    Liked
    416

    Re: R63 Crypto In java

    Either release it or don't release it. Don't post crap in the releases section unless it's a release.

    ktnxbai

  4. #3
    Creative One.
    Rank
    Member +
    Join Date
    Oct 2011
    Location
    Your Router
    Posts
    461
    Liked
    162

    Re: R63 Crypto In java

    Quote Originally Posted by Shorty View Post
    Either release it or don't release it. Don't post crap in the releases section unless it's a release.

    ktnxbai
    Its a release, just type it over :)

  5. #4
    PHP, HTML5, CSS3, JS, C#
    Rank
    Alpha Member
    Join Date
    Jun 2010
    Location
    The Netherlands
    Posts
    1,814
    Liked
    1013

    Re: R63 Crypto In java

    Say thanks to capostrike :d

    capostrike93 - Pastebin.com
    Posted via Mobile Device

  6. #5
    Creative One.
    Rank
    Member +
    Join Date
    Oct 2011
    Location
    Your Router
    Posts
    461
    Liked
    162

    Re: R63 Crypto In java

    Quote Originally Posted by joopie View Post
    Say thanks to capostrike :d

    capostrike93 - Pastebin.com
    Posted via Mobile Device

    *clap*

  7. #6
    Delta Subscription
    Rank
    Subscriber
    Join Date
    Nov 2008
    Location
    Manchester, UK
    Posts
    3,264
    Liked
    821

    Re: R63 Crypto In java

    Quote Originally Posted by G33k View Post
    *clap*
    No need to be cocky, you should have credited the author in the beginning.

  8. #7
    megaman
    Rank
    Member +
    Join Date
    May 2011
    Location
    London
    Posts
    997
    Liked
    198

    Re: R63 Crypto In java

    It's not yours, it's old, and most of all it's pointless. Most, if not all java habbo devs have this already.

  9. #8
    Web Application Developer
    Rank
    Moderator
    Join Date
    Apr 2010
    Posts
    2,982
    Liked
    1000

    Re: R63 Crypto In java

    Ok, not really helpful.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •