Skip to content

Commit fd7ee60

Browse files
committed
Config file modified and added detailed description of number_of_digits key. Redme updated.
1 parent 4daa5e7 commit fd7ee60

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Two Factor Authentication is an extra security layer for your application. Two F
1212
- Laravel >= 5.3
1313
- Google Authenticator [Android](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=en) - [iOS](https://itunes.apple.com/in/app/google-authenticator/id388497605?mt=8) (Recommended) or [Authy](https://www.authy.com/) mobile app
1414

15+
Note: Current implementation is buggy using Authy as Google Authenticator uses SHA-1 with 128-bit keys whereas Authy uses SHA-2 with 256-bit keys. SHA-2 with 256-bit key is coming in verion `0.1.0`.
16+
1517
## Installation
1618
**1. Composer Install**
1719

config/2fa-config.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@
2424
'digest_algorithm' => 'sha1',
2525

2626
/*
27-
* Number of digits can be max 30
28-
* To Support Google Authenticator
27+
* Size of Base32 encoded secret key.
28+
* Default 10.
29+
* Note. Keeping Secret key in multiple of
30+
* 5 would result secret key not padded
31+
* with equal to symbols.
2932
*/
30-
'number_of_digits' => 8,
33+
'number_of_digits' => 10,
3134

3235
/*
3336
* Explitcitly Define Table name for the model.

0 commit comments

Comments
 (0)