Skip navigation links
B C D E F G H I K O P T V X 

B

Base64 - Class in fr.arakne.utils.encoding
Utility class for Dofus Pseudo base 64

C

Checksum - Class in fr.arakne.utils.encoding
Implementation of the Dofus network checksum https://github.com/Emudofus/Dofus/blob/1.29/dofus/aks/Aks.as#L248
chr(int) - Static method in class fr.arakne.utils.encoding.Base64
Get the base 64 character for the value Example: Base64.chr(3); // 'd' Base64.chr(Base64.ord('B')) == 'B';
chrMod(int) - Static method in class fr.arakne.utils.encoding.Base64
Get the base 64 character for the value, but after applying a modulo on the value to ensure that the call will not fail
cipher() - Method in class fr.arakne.utils.encoding.Key
Get the cipher related to this key The cipher instance is saved into the key

D

decode(String) - Static method in class fr.arakne.utils.encoding.Base64
Decode pseudo base64 value to int Example: Base64.decode("c"); // 2 Base64.decode("hk"); // 458
decode(String) - Method in class fr.arakne.utils.encoding.PasswordEncoder
Decode given string using key
decrypt(String, int) - Method in class fr.arakne.utils.encoding.XorCipher
Decrypt the value using the current key https://github.com/Emudofus/Dofus/blob/1.29/dofus/aks/Aks.as#L314

E

encode(int, int) - Static method in class fr.arakne.utils.encoding.Base64
Encode an int value to pseudo base 64 Example: Base64.encode(145, 2); // "cr" Base64.encode(2, 3); // "aac"
encode(byte[]) - Static method in class fr.arakne.utils.encoding.Base64
Encode a byte array to Base64 string Example: Base64.encode(new byte[] {2, 31}); // "cF"
encode() - Method in class fr.arakne.utils.encoding.Key
Encode the key to hexadecimal string
encode(String) - Method in class fr.arakne.utils.encoding.PasswordEncoder
Encode the password using the key
encrypt(String, int) - Method in class fr.arakne.utils.encoding.XorCipher
Encrypt the value using the current key The encrypted value is an upper case hexadecimal string https://github.com/Emudofus/Dofus/blob/1.29/dofus/aks/Aks.as#L297

F

fr.arakne.utils.encoding - package fr.arakne.utils.encoding
 

G

generate() - Static method in class fr.arakne.utils.encoding.Key
Generate a new random key, with length of 128 characters The generated key contains only displayable characters
generate(int) - Static method in class fr.arakne.utils.encoding.Key
Generate a new random key The generated key contains only displayable characters
generate(int, SecureRandom) - Static method in class fr.arakne.utils.encoding.Key
Generate a new random key The generated key contains only displayable characters

H

hexadecimal(String) - Static method in class fr.arakne.utils.encoding.Checksum
Compute the checksum as hexadecimal string The return value is a single hexadecimal char string

I

integer(String) - Static method in class fr.arakne.utils.encoding.Checksum
Compute the checksum as integer The returned value is in interval [0-16]

K

Key - Class in fr.arakne.utils.encoding
Handle key for Dofus packets
Key(String) - Constructor for class fr.arakne.utils.encoding.Key
 
key() - Method in class fr.arakne.utils.encoding.PasswordEncoder
Get the encoding key
key() - Method in class fr.arakne.utils.encoding.XorCipher
Get the key used by the cipher

O

ord(char) - Static method in class fr.arakne.utils.encoding.Base64
Get int value of base64 char Example: Base64.ord('d'); // 3 Base64.ord(Base64.chr(3)) == 3;

P

parse(String) - Static method in class fr.arakne.utils.encoding.Key
Parse an hexadecimal key string https://github.com/Emudofus/Dofus/blob/1.29/dofus/aks/Aks.as#L232
PasswordEncoder - Class in fr.arakne.utils.encoding
The password encoding algorithm for Dofus The algo is a pseudo base 64 vigenere cypher implementation Note: This is not a safe method for store or communicate password.
PasswordEncoder(String) - Constructor for class fr.arakne.utils.encoding.PasswordEncoder
 

T

toBytes(String) - Static method in class fr.arakne.utils.encoding.Base64
Decode a Base 64 string to a byte array Each byte will represents the ord(char) value of each characters Example: Base64.toBytes("cF"); // new byte[] {2, 31}
toString() - Method in class fr.arakne.utils.encoding.Key
 

V

verify(String, int) - Static method in class fr.arakne.utils.encoding.Checksum
Verify the checksum of the input value
verify(String, String) - Static method in class fr.arakne.utils.encoding.Checksum
Verify the checksum of the input value

X

XorCipher - Class in fr.arakne.utils.encoding
Implementation of the xor cipher in Dofus 1 Note: This cipher is not secure, the key can be easily retrieved.
XorCipher(String) - Constructor for class fr.arakne.utils.encoding.XorCipher
 
B C D E F G H I K O P T V X 
Skip navigation links

Copyright © 2022. All rights reserved.