Skip to content

Instantly share code, notes, and snippets.

View renholm's full-sized avatar

Kristoffer Renholm renholm

  • Netlight Consulting
  • Stockholm, Sweden
View GitHub Profile
@renholm
renholm / GenerateEMVCAPubKeyHash.java
Created March 22, 2017 15:44
Generate the hash for an EMV CA public key
import com.google.common.hash.HashCode;
import com.google.common.hash.Hashing;
import com.google.common.io.BaseEncoding;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
public class GenerateEMVCAPubKeyHash {
public static void main(String[] args) throws IOException {
byte[] rid = BaseEncoding.base16().decode("");
byte[] caPublicKeyIndex = BaseEncoding.base16().decode("");