Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Yubico's Modhex for Conversion #1105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

linuxgemini
Copy link

Mod(ified)hex is Yubico's implementation for somewhat universal OTP entry from a single security key, regardless of keyboard layout (with few exceptions).

This PR implements basic conversion functionality by mapping the characters into hex and converting it back and forth.

Some information is available here: https://en.wikipedia.org/wiki/YubiKey#ModHex

@linuxgemini linuxgemini changed the title Introduce Yubico's Modhex Introduce Yubico's Modhex for Conversion Sep 19, 2020
src/core/lib/Modhex.mjs Outdated Show resolved Hide resolved
src/core/lib/Modhex.mjs Outdated Show resolved Hide resolved
src/core/lib/Modhex.mjs Outdated Show resolved Hide resolved
Copy link
Collaborator

@mattnotmitt mattnotmitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything else looks pretty good to me.

src/core/lib/Modhex.mjs Show resolved Hide resolved
@linuxgemini
Copy link
Author

Signed-off-by: İlteriş Yağıztegin Eroğlu ilteris@asenkron.com.tr

@linuxgemini
Copy link
Author

Are there any updates on the merging of this PR?

@a3957273
Copy link
Member

Hey! This pull request has gotten rather old and that's our fault. This project stopped being actively maintained for a while and it looks like your pull request has started to gather dust. Would you be able to update your branch to the latest version of CyberChef and we'll give it a review?

@linuxgemini
Copy link
Author

Hey! This pull request has gotten rather old and that's our fault. This project stopped being actively maintained for a while and it looks like your pull request has started to gather dust. Would you be able to update your branch to the latest version of CyberChef and we'll give it a review?

Heya! It sure did get dust 😅, I'll try re{bas,factor}ing the code to current CyberChef later today (June 12th). Will poke when its done.

@linuxgemini
Copy link
Author

@a3957273 I think this should do it, I couldn't get tests working on macOS; so tests may or may not work.

@linuxgemini linuxgemini force-pushed the linuxgemini-patch-modhex branch 2 times, most recently from 1a6506d to 6ecedbe Compare June 17, 2024 23:56
Signed-off-by: İlteriş Yağıztegin Eroğlu <ilteris@asenkron.com.tr>
@linuxgemini
Copy link
Author

linuxgemini commented Jun 18, 2024

@a3957273 Hi again! Turns out I had some issues in the lib file, the test errors doesn't reflect anything back so it took me a while (perhaps improving test outputs would be a roadmap item?). This one (edd2237) should pass the tests.

Post test edit: Looks like UI tests failed, but the lib passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants