Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7860115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:09:52+00:00 2026-06-02T22:09:52+00:00

so I have been using Yubikey for a while and now want to integrate

  • 0

so I have been using Yubikey for a while and now want to integrate it to my admin section.

I have found a great class here: http://code.google.com/p/yubikey-php-webservice-class

the only problem is, it checks for a:

[yubikeytest.php]

if (md5 (substr ($otp, 0, 12).":".$_POST['username']) != $token_id)

Which means that the i must already have a token id in the database.

But i cant figure out how to create the original token and place it in the database since $token_id must = an md5 hash of the OTP and the username but we all know otp is ONE TIME and therefore will never = the original token.

am i doing something wrong and how would i be able to implement this with least trouble as possible?

What i want to do is keep my current auth, but for those users who have/want to auth with yubiekey, they can register their key with us <- I want to know how and then each login, those users, during login, will be asked to input the yubiekey OTP.

Please help and once I get a proper solution, I will make it accessible to any other users to make the process easier since this topic does not have much info.

PS. also if what I’m looking for is already in a script please let me know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T22:09:54+00:00Added an answer on June 2, 2026 at 10:09 pm

    The YubiKey OTP is constructed of two parts, the last 32 characters being the encrypted OTP, the characters before that (by default 12) is a static public id, identifying the key. So the code above only does md5 of the public id, which you can get from any OTP from a given key.

    For a php solution there is also the php-yubico project maintained by Yubico: http://code.google.com/p/php-yubico/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using the CodeIgniter system for a while now - but it
I have been using Weblogic as my company used it. Now I want to
I have been using form inheritance for a while now but without doing much
I have been using C# for a while now, and going back to C++
I have been using Ruby for a while now and I find, for bigger
I have been using IoC for a little while now and I am curious
I have been using ajax loaded data for a while now, but I am
I have been using this code with great success to pull out the first
I have been using WPF for a few years now and don't have any
I have been using this copy method for quite a while, in lots of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.