protected function PHPGangsta_GoogleAuthenticator::_getBase32LookupTable in TFA Basic plugins 7
Get array with all 32 characters for decoding from/encoding to base32.
Return value
array
2 calls to PHPGangsta_GoogleAuthenticator::_getBase32LookupTable()
- PHPGangsta_GoogleAuthenticator::createSecret in includes/
googleauthenticator/ GoogleAuthenticator.php - Create new secret. 16 characters, randomly chosen from the allowed base32 characters.
- PHPGangsta_GoogleAuthenticator::_base32Decode in includes/
googleauthenticator/ GoogleAuthenticator.php - Helper class to decode base32.
File
- includes/
googleauthenticator/ GoogleAuthenticator.php, line 211
Class
- PHPGangsta_GoogleAuthenticator
- PHP Class for handling Google Authenticator 2-factor authentication.
Code
protected function _getBase32LookupTable() {
return array(
'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
// 7
'I',
'J',
'K',
'L',
'M',
'N',
'O',
'P',
// 15
'Q',
'R',
'S',
'T',
'U',
'V',
'W',
'X',
// 23
'Y',
'Z',
'2',
'3',
'4',
'5',
'6',
'7',
// 31
'=',
);
}