?> </li> <li><?php echo $FMT_DEC . ': ' . htmlspecialchars(gmp_strval(gmp_init(b64ToHex($b64txt), 16))); ?> </li> <li><?php echo $FMT_MODHEX . ' encoded: ' . htmlspecialchars(b64ToModhex($b64txt)); ?> </li> <li><?php echo $FMT_B64 . ' encoded: ' . htmlspecialchars($b64txt); ?> </li> <li><?php echo $FMT_HEX . ' encoded: ' . htmlspecialchars(b64ToHex($b64txt)); ?> </li> </ul> </fieldset> <br> <?php } ?> <form action=Modhex_Calculator.php method=post autocomplete=off> <fieldset> <legend><b>Number scheme calculator</b></legend> <ol> <li>Choose format.</li> <li>Enter string.</li> <li>Press "Convert to all formats" button.</li>
if ($username && $password) { print "two-factor legacy"; } else { if ($password) { print "two-factor"; } else { print "one-factor"; } } print "</td></tr>\n"; if ($passwordkey) { print "<tr><td width=70><b>passwordkey</b></td><td>" . htmlspecialchars($passwordkey) . "</td></tr>\n"; } else { if ($key) { print "<tr><td width=70><b>key</b></td><td>" . htmlspecialchars($key) . "</td></tr>\n"; } } !$username or print "<tr><td width=70><b>username</b></td><td>" . htmlspecialchars($username) . "</td></tr>\n"; !$password or print "<tr><td width=70><b>password</b></td><td>" . htmlspecialchars($password) . "</td></tr>\n"; !$identity or print "<tr><td width=70><b>identity</b></td><td>" . htmlspecialchars($identity) . " <b>decimal </b> " . base_convert(b64ToHex(modhexToB64($identity)), 16, 10) . "</td></tr>\n"; !$realname or print "<tr><td width=70><b>db_realname</b></td><td>" . htmlspecialchars($realname) . "</td></tr>\n"; !$db_password or print "<tr><td width=70><b>db_password</b></td><td>" . htmlspecialchars($db_password) . "</td></tr>\n"; !$authenticated or print "<tr><td width=70><b>rc</b></td><td>" . htmlspecialchars($authenticated) . "</td></tr>\n"; print "<tr><td colspan=2> </td></tr>\n"; print "<tr><td colspan=2><b>Authentication Output</b></td></tr>\n"; if ($yubi) { $txt = $yubi->getLastResponse(); } $txt = preg_replace('/\\n/', '<br>', $txt); print "<tr><td colspan=2>{$txt}</td></tr>\n"; print "</table></p>\n";
?> </li> <li><?php echo $FMT_DEC . ': ' . gmp_strval(gmp_init(b64ToHex($b64txt), 16)); ?> </li> <li><?php echo $FMT_MODHEX . ' encoded: ' . b64ToModhex($b64txt); ?> </li> <li><?php echo $FMT_B64 . ' encoded: ' . $b64txt; ?> </li> <li><?php echo $FMT_HEX . ' encoded: ' . b64ToHex($b64txt); ?> </li> </ul> </fieldset> <br> <?php } ?> <form action=Modhex_Calculator.php method=post autocomplete=off> <fieldset> <legend><b>Number scheme calculator</b></legend> <ol> <li>Choose format.</li> <li>Enter string.</li> <li>Press "Convert to all formats" button.</li>