KeyCard Python SDK - APDU communication and cryptographic utilities.
Project description
KeyCard Python SDK
A minimal, clean, fully native Python SDK for communicating with Keycard smart cards.
This SDK is under active development.
APDU commands are being implemented one by one.
Supported Commands
- SELECT
- INIT
- IDENT
- OPEN SECURE CHANNEL
- MUTUALLY AUTHENTICATE
- PAIR
- UNPAIR
- GET STATUS
- VERIFY PIN
- CHANGE PIN
- UNBLOCK PIN
- LOAD KEY
- DERIVE KEY
- GENERATE MNEMONIC
- REMOVE KEY
- GENERATE KEY
- SIGN
- SET PINLESS PATH
- EXPORT KEY
- STORE DATA
- GET DATA
- FACTORY RESET
Goals
- Fully native Python implementation
- Clean API surface
- Easy to integrate
- Clear separation between transport, protocol, parsing, and crypto
- Fully tested, deterministic behavior
- Focused on correctness, clarity, and maintainability
Installation
git clone https://github.com/mmlado/keycard-py.git
cd keycard-py
python -m venv venv
source venv/bin/activate
pip install -e .
pytest
License
MIT
Contributions
Contributions are welcome as this SDK grows.
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
keycard-0.2.0.tar.gz
(45.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keycard-0.2.0.tar.gz.
File metadata
- Download URL: keycard-0.2.0.tar.gz
- Upload date:
- Size: 45.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
561c6ef4f81d11d9506920170159bba0db4739faea992965d839f79aaf1abe10
|
|
| MD5 |
175384ca10806edb3d0b6b870744b553
|
|
| BLAKE2b-256 |
db2493d9451bcdc6b3d7c68a6a1facb5cfa36f4c1fa92048574d8a1256052780
|
File details
Details for the file keycard-0.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: keycard-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 38.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66e6fe7681b5713583f6fa47bfc8a8dd5db12423c2b31788e43bdf5399808297
|
|
| MD5 |
c51ec9fda7691b27c3d9c49c21cf8bc6
|
|
| BLAKE2b-256 |
c6ecf51b3c963cc6276878d0dc4fefffbf46c3addd8a39c052c0049eab6a2aed
|