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
Release history Release notifications | RSS feed
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.6.tar.gz
(40.2 kB
view details)
Built Distribution
File details
Details for the file indala_decoder-1.0.6.tar.gz
.
File metadata
- Download URL: indala_decoder-1.0.6.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cb9dab55b3e6e1292419c1bae677509c6fa33388145837b0913315a927b5766 |
|
MD5 | 71a9577324db53335dbb73b1d3928399 |
|
BLAKE2b-256 | 938806d421be30c10727193dc6b33914b8d9c21a5c8cd38c7161717c06dfad0b |
File details
Details for the file indala_decoder-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: indala_decoder-1.0.6-py3-none-any.whl
- Upload date:
- Size: 28.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e3b49462c1e8df88cb069de1aff99fb369c8912c2ca47f50736b766afb84db9 |
|
MD5 | 8b8f3e8ff73ff620d01fc9fd3c3b5b77 |
|
BLAKE2b-256 | e6550ca9b579214c98ae1e2e07d99497dac10a8ba68e00b8dfafe80237d6e761 |