Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php $payload = array( "data" => [ "name" => "ZiHang Gao", "admin" =..
Decoded Output download
<?php
$payload = array(
"data" => [
"name" => "ZiHang Gao",
"admin" => true
],
"iss" => "http://example.org",
"sub" => "1234567890",
);
// none algorithm
$token = jwt_encode($payload, null, 'none');
echo $token . PHP_EOL;
print_r(jwt_decode($token, null, false)); ?>
Did this file decode correctly?
Original Code
<?php
$payload = array(
"data" => [
"name" => "ZiHang Gao",
"admin" => true
],
"iss" => "http://example.org",
"sub" => "1234567890",
);
// none algorithm
$token = jwt_encode($payload, null, 'none');
echo $token . PHP_EOL;
print_r(jwt_decode($token, null, false));
Function Calls
None |
Stats
MD5 | 37cfd8ebfbcf38b448b74f80e59ab28b |
Eval Count | 0 |
Decode Time | 110 ms |