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: -
Metadata
Release files for indala-decoder 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| indala_decoder-1.0.8.tar.gz | 15.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| indala_decoder-1.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.7 kB
Release files / indala_decoder-1.0.8.tar.gz
| Download URL | indala_decoder-1.0.8.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4023157453ad4ac503d60996863f8ac234cdb5624b41e1dbb19cd1ac2d1df682
|
|
BLAKE2b-256 checksum How to use checksums |
639567f3c91c56e1c16e34558cf072f0351defbb2ccb0084d192250b6a58bc6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.5
|
Release files / indala_decoder-1.0.8-py3-none-any.whl
| Download URL | indala_decoder-1.0.8-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb82d50efb3a95b419eecb933807a1c0944ef0ecde918218efe2ed264273c80f
|
|
BLAKE2b-256 checksum How to use checksums |
68f41b6fbe3b586ad9d036c0708d7ea1ee005931f0c7ba4e34f0d1c803c562cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.5
|