The Yubikey is a one-time password device that acts as a USB keyboard, emitting a unique sequence of keycodes each time the button is pressed. These codes produce different characters depending on your keyboard layout. This can be frustrating if your keyboard layout is incompatible with the Yubico server.
modhex.translate(otp) compares the unicode output of a Yubikey against the characters the Yubikey would emit in a variety of keyboard layouts, returning the set of possible translations. In the likely case len(set(otp)) == 16, almost every keyboard layout has an unambigous translation into Yubico-compatible modhex, what the Yubikey types under the QWERTY keyboard layout.
>>> import modhex >>> modhex.translate(u"jjjjjjjjnhe.ngcgjeiuujjjdtgihjuecyixinxunkhj") set([u'ccccccccljdeluiucdgffccchkugjcfditgbglbflvjc'])
>>> modhex.translate(u"jjjjjjjjnhe.ngcgjeiuujjjdtgihjuecyixinxunkhj", ... modhex.HEX) set([u'00000000a823ae7e0254400069e580427d515a14af80'])
Metadata
Release files for Modhex 0.1
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 |
|---|---|---|---|---|
| Modhex-0.1.tar.gz | 5.3 kB | Without provenance | Details for Modhex-0.1.tar.gz |
Release files / Modhex-0.1.tar.gz
| Download URL | Modhex-0.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f961831607600415a11e66526c57f1783c21214ef7cdbacf2e560e291bc0171d
|
|
BLAKE2b-256 checksum How to use checksums |
e16c579e86c0ced23568fe88b2b4641e1144a238d9bad05a3d5b190870921fed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Modhex 0.1
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.