MediaWiki REL1_32
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. More...
Static Public Member Functions | |
static | decode ($b32) |
Decodes a base32 string into a binary string according to RFC 4648. | |
static | encode ($string) |
Encodes a binary string into a base32 string according to RFC 4648 (no padding). | |
Static Private Attributes | |
static | $lut |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
PHP Google two-factor authentication module.
See http://www.idontplaydarts.com/2011/07/google-totp-two-factor-authentication-for-php/ for more details
Definition at line 24 of file base32.php.
|
static |
Decodes a base32 string into a binary string according to RFC 4648.
Definition at line 48 of file base32.php.
Referenced by OATHAuthKey\verifyToken().
|
static |
Encodes a binary string into a base32 string according to RFC 4648 (no padding).
Definition at line 80 of file base32.php.
Referenced by OATHAuthKey\newFromRandom(), and OATHAuthKey\regenerateScratchTokens().
|
staticprivate |
Definition at line 26 of file base32.php.