emv_parser

Crates.ioemv_parser
lib.rsemv_parser
version0.1.5
sourcesrc
created_at2023-12-03 08:33:16.425315
updated_at2024-01-21 09:11:45.375731
descriptionAn EMV Message Parser
homepage
repositoryhttps://github.com/HosseinAssaran/EMV-Parser
max_upload_size
id1056802
size766,242
Hosssein (HosseinAssaran)

documentation

README

EMV Parser

This Rust program gets emv messagesv in hex string format and it extracts and processes specific fields from an input message.

Usage

Utilize as a Command Line Interface (CLI).

  1. Clone the repository:

    git clone https://github.com/HosseinAssaran/EMV-Parser
    cd EMV-Parser
    
  2. Build and run the program:

    cargo build
    cargo run
    
  3. Follow the prompts to enter an EMV message for parsing.

Integrate the Rust Parser CLI with a PHP Web Server.

  1. Clone the repository:

    git clone https://github.com/HosseinAssaran/EMV-Parser
    cd EMV-Parser
    
  2. Build relaese:

    cargo build --release
    
  3. Run PHP Server:

    php -S localhost:12345
    
  4. Open you browser and go to localhost:12345

Testing

To run tests, use the following command:

cargo test

Usage As a Library

  1. Add the emv_parser package to your project using Cargo:
cargo add emv_parser
  1. Import the necessary modules where you want to use the library functions:
use emv_parser::{StringManipulation, positions_of_set_bits, LTV};

Commit count: 26

cargo fmt