スマホゲームのチート手法とその対策 [DeNA TechCon 2019]
- 75. #denatechcon
public class EncodeSampleGame extends Encoder
{
public byte[] decodeClientRequest(byte[] input_data) throws Exception {
return input_data;
}
public byte[] encodeClientRequest(byte[] input_data) throws Exception {
return input_data;
}
public byte[] decodeServerResponse(byte[] input_data) throws Exception {
return input_data;
}
public byte[] encodeServerResponse(byte[] input_data) throws Exception {
return input_data;
}
}
PacketProxyに4つのメソッドを定義するだけ
クライアントリクエスト
復号
クライアントリクエスト
暗号化
サーバレスポンス
復号
サーバレスポンス
暗号化