Comments (1)
The QRCode composed by an address like this:
otpauth://totp/company:holder?secret={$secretKey}&issuer=company&algorithm=SHA1&digits=6&period=30
What you are looking for is probably the just "secret key", which is the one responsible for generating the codes on your phone, that you may be already using like this:
$google2fa->generateSecretKey();
Authy is doing is probably encoding that secret key using an internal algorithm, but if in the end if they are using the same OTP Google algorithm, they have to use the exact same secret key generation this package uses.
The risk of losing a QRCode and a secret key are the same, if you loose one of them your account is already compromised, so maybe you don't even need to double encode it (but, honestly, I would!) and you could just do
$google2fa->generateSecretKey(); // generates AL77CK2NTRXXF2WO
echo implode(' ',str_split(strtolower($google2fa),4));
// al77 ck2n trxx f2wo
from google2fa.
Related Issues (20)
- verifyKeyNewer() not working as expected HOT 5
- Not working with Laravel API HOT 1
- How to force the user to using 2FA
- Bug in testing (not a security issue)
- Bug in testing due to PHPUnit's interpretation HOT 1
- Don't ask for 2FA code every time HOT 3
- Google Authenticator and Authy App generating invalid codes HOT 1
- verifyKey always fail - simple demo HOT 1
- (Old) Demo page is broken
- composer error: The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems) Unzip with 7z command failed, falling back to ZipArchive class
- Anyone know how to deeplink open authenticator app from iOS
- verifyKeyNewer HOT 1
- Is it possible to install directly in FTP directory, ie. without using composer? HOT 1
- Secret key is too short. Must be at least 16 base32 characters
- Typo in a code of the Google2FA class on line 397 (8.x - php 7.4) HOT 1
- Code timing incorrect HOT 2
- libxml extention error HOT 1
- QRCode URL shows 404 HOT 8
- broken img link on google2fa qrcode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google2fa.