Skip to content

Instantly share code, notes, and snippets.

@sachinshelke
sachinshelke / SignatureCheck.java
Created February 5, 2020 06:16 — forked from scottyab/SignatureCheck.java
Simple Android signature check. It's not bullet proof but does increase the difficulty of backdooring the app
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.Signature;
public class TamperCheck {
//we store the hash of the signture for a little more protection
private static final String APP_SIGNATURE = "1038C0E34658923C4192E61B16846";
@sachinshelke
sachinshelke / Buyer.java
Created December 28, 2017 09:08 — forked from maxant/Buyer.java
Code for the Java trading engine solution
package ch.maxant.tradingengine.model;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import ch.maxant.tradingengine.model.TradingEngine.Listener;
@sachinshelke
sachinshelke / Buyer.java
Created December 28, 2017 09:08 — forked from maxant/Buyer.java
Code for the Java trading engine solution
package ch.maxant.tradingengine.model;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import ch.maxant.tradingengine.model.TradingEngine.Listener;