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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: indala_decoder-1.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 4023157453ad4ac503d60996863f8ac234cdb5624b41e1dbb19cd1ac2d1df682
MD5 7ef63f3b0ee791fa85807f4766918c35
BLAKE2b-256 639567f3c91c56e1c16e34558cf072f0351defbb2ccb0084d192250b6a58bc6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for indala_decoder-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fb82d50efb3a95b419eecb933807a1c0944ef0ecde918218efe2ed264273c80f
MD5 c1e0aedd923388bbc1a0b8ec91ae3ec0
BLAKE2b-256 68f41b6fbe3b586ad9d036c0708d7ea1ee005931f0c7ba4e34f0d1c803c562cd

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