承接 marc1706/otp-authenticate 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marc1706/otp-authenticate

最新稳定版本:1.0.1

Composer 安装命令:

composer require marc1706/otp-authenticate

包简介

Provides a simple and up-to-date library for two-factor authentication using OTP hashes and Google Authenticator or a similar app.

README 文档

README

About

This library implements OTP authentication into PHP. It allows users to generate TOTP and HOTP codes for two-factor authentication. Generated codes can be created using sha1, sha256, or sha512 hashes. Whilst Google Authenticator will only support the first hash type, the latter two are properly supported by apps like FreeOTP.

Codes are compared using a constant time comparison method and secrets are generated using openssl_random_pseudo_bytes().

Requirements

PHP 7.2.0 or newer is required for this library to work.

Automated Testing

The library is being tested using unit tests to prevent possible issues.

Tests Code Coverage Scrutinizer Code Quality

License

The MIT License (MIT)

统计信息

  • 总下载量: 597
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-20