Skip to main content

A Python library for decoding 32-bit Indala26 codes into facility code and card numbers, and vice versa

Project description

Indala-Decoder

A Python library for decoding 32-bit Indala26 codes into facility code and card numbers, and vice versa

Installation

Via pip

pip install indala-decoder

From source

git clone https://github.com/muzak23/indala-decoder.git

Usage

As a library

import indala_decoder as id

# Decode a 32-bit Indala26 code from hex
print(id.bin_to_summary(id.hex_to_bin('12:34:56:78')))

# FC: 35
# Card: 11414
# Checksum: -
# W26 Parity: -

# Encode a 32-bit Indala26 code from facility code and card number
print(id.summary_to_bin(1234, 5678))

# 01111111000000110100000110110000

From commandline

Work in progress, hex must be in format 1a2b3c4d

$ py indala_decoder.py
Raw data to summary (r) or summary to raw data (s)?
r
Enter raw data (binary or hex):
12345678
FC: 35
Card: 11414
Checksum: -
W26 Parity: -

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

indala_decoder-1.0.5.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

indala_decoder-1.0.5-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file indala_decoder-1.0.5.tar.gz.

File metadata

  • Download URL: indala_decoder-1.0.5.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.5

File hashes

Hashes for indala_decoder-1.0.5.tar.gz
Algorithm Hash digest
SHA256 91b80f2444a9a0c1bed4679d9feabaee299bfd18a3336c2ba12c71c6f75072f9
MD5 6be3f63f6426c708f2f1d157083418af
BLAKE2b-256 7538f3e8194050baa89bcd6aa8d6b32823a4fd457cd291c4369d50f133858f5e

See more details on using hashes here.

File details

Details for the file indala_decoder-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for indala_decoder-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b87fd40dede1c8ec0174a8b60187fdefc121ee09ed9e4326bf84b34ad7192578
MD5 bfb0f22673b4b705a4d44a91c471ff73
BLAKE2b-256 aad1f27fa6c8c5ef5edef35b2d8566f55495443a1c766a79a4357ecec735b111

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page