/Cardify

Team Project using Homomorphic

Primary LanguagePython

Cardify

Overview

Cardify is a Python web application that provides card number and expiry date validation using encryption technology. The program is built using the PI-HEAAN (Homomorphic Encryption for Arithmetic of Approximate Numbers) library. It allows users to input credit card information through a user-friendly web interface and validates the entered card number and expiry date.

Installation

Windows

  1. Clone the Repository:

    git clone https://github.com/jeonghyeonee/Cardify.git
  2. Setup Virtual Environment:

    python -m venv your_virtual_environment_name
    your_virtual_environment_name\Scripts\activate
    pip install -r requirements.txt

Linux / MacOS

  1. Clone the Repository:

    git clone https://github.com/jeonghyeonee/Cardify.git
  2. Setup Virtual Environment:

    python3 -m venv your_virtual_environment_name
    source your_virtual_environment_name/bin/activate
    pip install -r requirements.txt

Usage

  1. Run the Web Application:

    python app.py
  2. Access the Web Interface: Open your web browser and navigate to http://localhost:5000

  3. Input Credit Card Information: Follow the prompts on the web page to input the credit card number and expiry date in the specified format.

  4. View Validation Result: The program will validate the entered card number and expiry date, determine the card brand, and display the validation result on the web page.

Web Interface

The web interface provides a user-friendly way to input credit card information and view the validation result.

Input Credit Card Information

Follow the prompts on the web page to input the credit card number and expiry date in the specified format.

Example:

Card Number: 1234-5678-9012-3456
Expiry Date: 12/25

Output

The validation result will be displayed on the web page, indicating whether the card number and expiry date are valid.

Master

Input

image

Result

image

Visa

Input

image

Result

image

Invalid

Input

image

Result

image

References

Test Card Numbers