otphp

A PHP library for generating one time passwords according to RFC 4226 (HOTP) and the RFC 6238 (TOTP)

MIT License

Downloads
29.9M
Stars
1.3K
Committers
25

Bot releases are visible (Hide)

otphp - Version 9.0.2

Published by Spomky about 7 years ago

This new minor release fixes #80. The Base32 encoder is now provided by Paragonie.

otphp - Version 8.3.1

Published by Spomky about 7 years ago

  • Minor correction for the timecode calculation method.
otphp - Version 9.0.1

Published by Spomky about 7 years ago

  • Minor correction for the timecode calculation method.
otphp - Version 9.0.0

Published by Spomky over 7 years ago

This major release includes the following changes:

  • All classes are now private.
  • The minimal PHP version is 7.1.
  • Strict type hinting for all methods (including protected and private methods).
  • HHVM is not tested anymore.

See how to upgrade from v8.x to this version.

otphp - Version 9.0.0 - Alpha 1

Published by Spomky over 7 years ago

This new major release introduces the following main changes:

  • TOTP and HOTP constructors are now private. Please use the static method create instead.
  • Classes are marked as final
  • The minimal PHP required version is 7.1. HHVM is not tested anymore.
  • Documentation has been updated accordingly.

The library will be marked as stable if no issue is found within the next 30 days.

otphp - Version 8.3.0

Published by Spomky almost 8 years ago

With this minor release, the label is no more required by the TOTP and HOTP classes.
You can now create OTP objects and generate/verify passwords without label.

Label are still required when the provisioning URI is computed.

otphp - Version 8.2.0

Published by Spomky over 8 years ago

The method verify does not require the second argument (input) anymore.

For TOTP: it changes nothing. You can continue to use the library as before
For HOTP: now you can call this method and verify if the OTP is valid or not. The library will use the current counter.

otphp - Version 8.1.0

Published by Spomky over 8 years ago

This new version simplifies the usage of the getProvisioningQrCode method by setting by default the Google Chart API for QR Code creation (first argument of the method)

otphp - Version 8.0.0

Published by Spomky over 8 years ago

This new major release includes to following modifications:

  • Add a method to get the URI to a QR Code image provided by a web service (Google Chart API or any other web service).
  • Allow the classes to be instantiated without secret. If secret is not set, then a random secret is created.
  • Remove the parameter for Google Authenticator compatibility: now all provisioning URI are compatible with Google Authenticator.
otphp - Version 7.0.4

Published by Spomky over 8 years ago

This minor release fixes the #47.
Now the issuer, when set, will be included as a query parameter in the provisioning URi by default.

otphp - v7.0.3

Published by Spomky over 8 years ago

This version fixes the issue #46 and allows a provisioning Uri without issuer to be correctly loaded by the OTP Factory.

otphp - Version 7.0.0

Published by Spomky over 8 years ago

otphp - Git attributes added

Published by Spomky almost 9 years ago

This release adds Git attributes to avoid useless files in production to be downloaded (documentation, tests and other associated files or directories).

otphp - Library available for PHP 5.5.9+

Published by Spomky almost 9 years ago

This library is now available for PHP 5.5.9+.

otphp - Time attack mitigation

Published by Spomky almost 9 years ago

This new release includes the following fixes:

  • #35 Time attack mitigation
otphp - v6.0.0

Published by Spomky about 9 years ago

This new major release provides the following features:

  • The classes are not abstract,
  • Custom query string parameters can be passed when building the provisioning URI (see #29)
  • A Factory allow you to load provisioning URI and get the associated OTP object
  • Old PHP versions (5.3 to 5.5) are dropped. PHP7 and HHVM are supported.
otphp - Version 4.0.2

Published by Spomky over 9 years ago

This release fixes a bug on iOS plateform. See #20

otphp - Version 4.0.1

Published by Spomky almost 10 years ago

otphp - Version 4.0.0

Published by Spomky almost 10 years ago

otphp - Version 3.1.1

Published by Spomky almost 10 years ago