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.7.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

indala_decoder-1.0.7-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: indala_decoder-1.0.7.tar.gz
  • Upload date:
  • Size: 15.8 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.7.tar.gz
Algorithm Hash digest
SHA256 0937921380a9263f8eef5a0afcc24c2219981384a73b547d6418bf5261a50ab3
MD5 5feff22d1e667536d0fb3545f2529c6f
BLAKE2b-256 ddfe83199fe22d9d427ca35c07da7c9fc8e85f93532a03fd6287439225b94df5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for indala_decoder-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 28b20a11a654f1b613ef51f8dc0e40a99d352a95693a9545dafe3d1a85624f90
MD5 d13292fa197425eecbfb6dcd2057911e
BLAKE2b-256 ca557ceb3de8b83fdc2fb3f8f103d78ba94592b497cffd069267e6a36fb579be

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