Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: One Time Password?



Permlink Replies: 2 - Last Post: Jan 16, 2018 6:12 AM Last Post By: KabloNET Progra... Threads: [ Previous | Next ]
KabloNET Progra...

Posts: 17
Registered: 7/4/03
One Time Password?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 15, 2018 11:49 PM
Hi,

i want to create time based one time password from ios and anroid, and use from my desktop application (Win64). If user provide correct password, he/she will open certain forms. I found a google authenticator unit:

http://lookinside.free.fr/delphi.php?GoogleAuthenticator

I create a multi device application on Delphi Tokyo. But ios and win64 generate different number, passwords doesn't match.

How could i resolve this problem? Could you suggest another one time password solution?

Thanks.
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: One Time Password?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 16, 2018 12:06 AM   in response to: KabloNET Progra... in response to: KabloNET Progra...
KabloNET Programmer wrote:

http://lookinside.free.fr/delphi.php?GoogleAuthenticator

I create a multi device application on Delphi Tokyo. But ios and win64 generate different number, passwords doesn't
match.

That code doesn't take into account that strings on mobile are zero-based (as opposed to 1-based). If I have time (and
someone else doesn't beat me to it), I could look at what needs to be changed.

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
KabloNET Progra...

Posts: 17
Registered: 7/4/03
Re: One Time Password?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 16, 2018 6:12 AM   in response to: Dave Nottage in response to: Dave Nottage
Thanks a lot @Dave,

i add {$ZEROBASEDSTRINGS OFF} in unit and it did works.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02