Skip to main content

libykpers bindings for python via cffi

Project description

Extremely small bindings to libykpers for communicating with a YubiKey over USB. The features are currently “whatever I need at the time.” Feel free to make suggestions about what to do next. Here’s approximately what it can do at the moment:

from ykpers import YubiKey

yk = YubiKey.open_first_key()
print 'yubikey {0.versionMajor}.{0.versionMinor}'.format(yk.get_status())
print 'slot 1:', yk.hmac_challenge_response('hi').encode('hex')
print 'slot 2:', yk.hmac_challenge_response('hi', slot=2).encode('hex')

Why not python-yubico?

It only runs on linux and reimplements what libykpers already does.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ykpers-cffi-0.14.0.0.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file ykpers-cffi-0.14.0.0.tar.gz.

File metadata

File hashes

Hashes for ykpers-cffi-0.14.0.0.tar.gz
Algorithm Hash digest
SHA256 06c943485c5dd0b495342647e139b4710a38aa3bfe6f09fe7901f7f447fa2de2
MD5 8f19b036295f25f4c3a630e6e2b54773
BLAKE2b-256 526faa9e518d8d1c2e6541dfcdfb035bbaa6e1d712deeba0c67d726daa484bcc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page