Skip to content

habnabit/ykpers-cffi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ykpers-cffi

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.

About

libykpers bindings for python via cffi

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages