Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 2.84 KB

README.md

File metadata and controls

59 lines (44 loc) · 2.84 KB

IFSF Security Fields Processor

build codecov

Compute security fields for IFSF Host-to-Host Interface financial transaction messages under ANSI X9.24 version 2004 and ANSI X9.24 2009 encryption schemes.

IFSF Host-to-Host standard in an adaption of ISO 8583 mainly devised for fuel payment transactions, but also used in several other financial applications.

Maven

<dependency>
  <groupId>com.github.alessandrozamberletti</groupId>
  <artifactId>ansix9242004</artifactId>
  <version>1.8</version>
  <scope>test</scope>
</dependency>

Description

The following fields can be calculated and parsed:

  • Personal Identification Number (PIN) DE-52;
  • Encrypted sensitive data DE-127;
  • Message authentication code (MAC) DE-64, DE-128.

To ease handling of field DE-52, utility methods to build and parse ISO 9564-1 Format 0 PIN blocks are also provided.

Formatting sensitive data in TLV format, hashing of the message for which ISO-9797-1 MAC has to be computed, and padding (using ether method 1 or method 2) are not in the scope of this library.

Disclaimer

The library should only be used for testing purposes as it does not provide any sort of security.

Algorithm explanations and pseudo-code

Sources