Skip to content

Instantly share code, notes, and snippets.

@Gilmor
Gilmor / PinblockTool.java
Created Jan 5, 2016
Pinblock ISO 9564 format 0
View PinblockTool.java
package cz.monetplus.mnsp.tools.misc;
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] monetplus.cz>
@Gilmor
Gilmor / Iso9797Alg3MacTest.java
Created Jan 25, 2016
Iso9797Alg3 - Retail MAC Calculation in Java
View Iso9797Alg3MacTest.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;
View keybase.md

Keybase proof

I hereby claim:

  • I am gilmor on github.
  • I am gilmor (https://keybase.io/gilmor) on keybase.
  • I have a public key ASAP2c9TEoFN8b8YrlWTj4UUTFULI5YTXyJmAG2FJFc2Vgo

To claim this, I am signing this object: