Git Product home page Git Product logo

delphiotp's People

Contributors

cn-tools avatar marsupilami79 avatar tavel avatar wendelb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

delphiotp's Issues

deployment with other software?

Hello,

we plan to distribute DelphiOTP with a server component for Zeos (zeoslib.sourceforge.io). Is that allowed and if so under which license? Or is DelphiOTP considered to be public domain? Or should we send users here to get DelphiOTP themselves if they want to use OTPs?

Best regards,

Jan

Compile issue on Delphi 12 with ifndefs

Problem with last line:

{###############################################################################
                      https://github.com/wendelb/DelphiOTP
###############################################################################}
unit GoogleOTP;

{$IFDEF FPC}
{$mode objfpc}{$H+}
{$ENDIF}

interface

uses
  {$IFNDEF FPC}System.{$ENDIF}SysUtils, {$IFNDEF FPC}System.{$ENDIF}Math, Base32U, {$IFNDEF FPC}System.{$ENDIF}DateUtils
  {$IFNDEF FPC}

[dcc32 Error] GoogleOTP.pas(13): E2029 Identifier expected but end of file found
[dcc32 Error] GoogleOTP.pas(13): E2029 Identifier expected but end of file found
[dcc32 Error] Base32U.pas(22): E2029 Identifier expected but end of file found
[dcc32 Error] Base32U.pas(55): E2003 Undeclared identifier: 'UpperCase'
[dcc32 Fatal Error] GoogleOTP.pas(13): F2063 Could not compile used unit 'Base32U.pas'

I will try to fix it myself but first I or copilot must understand what the problem is, it's kinda weird ! ;) =D

(Thanks btw for writing a small little app, saves me some time, I hope it's compatible with winotp and google authenticator ! ;) then I can compile/build this and hopefully this app will then work on windows 7, unlike all the other crap out there ! =D)

Sometimes token generates 4 digits instead of 6

I can't share my code since is propietary, but I can tell that sometimes with some strings I get a 4 digits code instead of 6.

The same code, first image 4 digits, second image 6 digits.
errortoken
good_token

How to use the project in Delphi 7

Hello!

How can I use your project in a Delphi 7 system?

Could you leave a sample project in the examples folder?

Thank you very much!

Delphi Tokyo issues in Android

Hi, I'm using a fork of this project (https://github.com/nikosdion/timecode) with Lazarus and now I'm using this project with Delphi Tokyo.

In both Lazarus and Delphi Tokyo for Win32 works really nice, I get the same tokens.

But for Android in Delphi Tokyo I get tokens that are not the same that the Delphi ones for Win32.

The code is really simple, is just using a string made with a secret part and an username.

Like:
CalculateOTP('mysecret' + username);

I've tried without using the username part and is the same.

My Android settings are:

  • Android SDK 26
  • Android NDK r15
  • Java 1.8.0 131

Delphi Berlin doesn't work!

In Delphi Berlin this code isn't work, the generated code is diferent, I think the problem is the unicode, but I'm not sure, if you could to help me... thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.