Python implementation of Keeloq encryption algorithm
Project description
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.
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
Built Distribution
File details
Details for the file leekoq-1.0.tar.gz
.
File metadata
- Download URL: leekoq-1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62746955b4f75c2aadb0f6676df2e794021151f7160d8017659f297aef64e06e |
|
MD5 | 2e64af3d59cf6f7725ac8ffd223ea6f4 |
|
BLAKE2b-256 | 3436a8401cffc4829750319c0252ee0208eeef6b10c3cb24b83c2ed9913fceed |
File details
Details for the file leekoq-1.0-py3-none-any.whl
.
File metadata
- Download URL: leekoq-1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2a8214443854da863fa67527bf28c6397be7494e35950b6751ed085c2d3a138 |
|
MD5 | 08306aa650d9efe6d0b55f296c42ae95 |
|
BLAKE2b-256 | 92e67b16ff06ee9fe32b85f33ce060cc0b8f06bbd81f8c69cd2845dafe9a04dd |