/// <summary>
 /// Encrypt data using MapleStory's AES algorithm
 /// </summary>
 /// <param name="IV">IV to use for encryption</param>
 /// <param name="data">Data to encrypt</param>
 /// <param name="length">Length of data</param>
 /// <returns>Crypted data</returns>
 public static byte[] aesCrypt(byte[] IV, byte[] data, int length)
 {
     return(aesCrypt(IV, data, length, MapleCryptoConstants.getTrimmedUserKey()));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Encrypt data using MapleStory's AES algorithm
 /// </summary>
 /// <param name="IV">IV to use for encryption</param>
 /// <param name="data">Data to encrypt</param>
 /// <param name="length">Length of data</param>
 /// <returns>Crypted data</returns>
 public static byte[] AesCrypt(byte[] IV, byte[] data, int length)
 {
     return(AesCrypt(IV, data, length, MapleCryptoConstants.GetTrimmedUserKey(ref MapleCryptoConstants.UserKey_WzLib)));
 }