|
|
 stig husby | 2010-10-04 13:20:32 |
Hi,
Excellent class. I'm trying to figure out how to use the ComputeMotp() function. And have a few questions:
ComputeMotp($seed_and_pin, $timestep, $token_size)
1) How do I concatenate $seed and $pin?
$seed . $pin
2) What is $timestep?
I tried to use time() but I'm not really sure what it is ??
3)I guess $token_size is number of tokens?
6 by default?)
best regards
Stig Husby
|
 stig husby | 2010-10-04 14:03:55 - In reply to message 1 from stig husby |
PS! I'm using the Miceli brothers MobileOTP client for android to generate the code on the client side.
-stig- |
 stig husby | 2010-10-04 14:15:39 - In reply to message 1 from stig husby |
Never mind :-)
I figured it out:
$timestep = floor(mktime() / 10 );
In addition i found that the mobile client had some helpful features like displaying the TIME and also viewing the hidden keyword which was converted to hex values, and that also did some affect ..
thanx for a great class!
-stig- |
 André Liechti | 2010-10-04 20:05:33 - In reply to message 1 from stig husby |
Hello,
timestep is not always the same, it depends the specification of your token manufacturer or developper.
Best regrads,
Andre |
 stig husby | 2010-10-05 06:30:19 - In reply to message 4 from André Liechti |
ok. Thanks.
I found the formula on the mobile otp site.
Do you have any simple examples on the different algorithms?
Which settings needs to be applied on the different algorithms?
What is the difference on token / user token?
-stig- |
|