Skip to content

Instantly share code, notes, and snippets.


Tomáš Jačko Gilmor

View GitHub Profile

Keybase proof

I hereby claim:

  • I am gilmor on github.
  • I am gilmor ( on keybase.
  • I have a public key ASAP2c9TEoFN8b8YrlWTj4UUTFULI5YTXyJmAG2FJFc2Vgo

To claim this, I am signing this object:

Gilmor /
Created Jan 25, 2016
Iso9797Alg3 - Retail MAC Calculation in Java
package cz.monetplus.mac;
import static org.assertj.core.api.Assertions.assertThat;
import org.apache.commons.codec.binary.Hex;
import org.bouncycastle.crypto.BlockCipher;
import org.bouncycastle.crypto.Mac;
import org.bouncycastle.crypto.engines.DESEngine;
import org.bouncycastle.crypto.macs.ISO9797Alg3Mac;
import org.bouncycastle.crypto.params.KeyParameter;
Gilmor /
Created Jan 5, 2016
Pinblock ISO 9564 format 0
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.lang.StringUtils;
* Tools for encoding a decoding pinblock
* @author Tomas Jacko <tomas.jacko [at]>