LeeKoq
This project is an open source pure Python 3 implementation of Microchip's KeeLoq propietary encryption algorithm, used in their series of KeeLoq remote key entry (RKE) devices.
Amongst others, these devices include:
Usage example
This project literally has two methods, so using it is pretty straightforward:
>>> import leekoq
>>> key = 0xCAFED00D
>>> cipher = leekoq.encrypt(0x12345678, key)
>>> hex(cipher)
'0x260afde3'
>>> plain = leekoq.decrypt(cipher, key)
>>> hex(plain)
'0x12345678'
Keys are 64-bit integers, and cipher- and plaintexts are 32-bit integers.
License
The code of this project is licensed under the Do What The Fuck You Want License, version 2:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
KeeLoq is a registered trademark of Microchip Technologies Inc.
Please note that neither the author is not affiliated with, nor this project is endorsed by Microchip Technologies, Inc.
Metadata
Release files for leekoq 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| leekoq-1.0.tar.gz | 2.8 kB | Without provenance | Details for leekoq-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| leekoq-1.0-py3-none-any.whl | Python 3 | none | any | Details for leekoq-1.0-py3-none-any.whl |
Total release size: 6.4 kB
Release files / leekoq-1.0.tar.gz
| Download URL | leekoq-1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62746955b4f75c2aadb0f6676df2e794021151f7160d8017659f297aef64e06e
|
|
BLAKE2b-256 checksum How to use checksums |
3436a8401cffc4829750319c0252ee0208eeef6b10c3cb24b83c2ed9913fceed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Release files / leekoq-1.0-py3-none-any.whl
| Download URL | leekoq-1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2a8214443854da863fa67527bf28c6397be7494e35950b6751ed085c2d3a138
|
|
BLAKE2b-256 checksum How to use checksums |
92e67b16ff06ee9fe32b85f33ce060cc0b8f06bbd81f8c69cd2845dafe9a04dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Security for leekoq 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.