- var_dump: documentation ( source)
- base64_decode: documentation ( source)
- base64_encode: documentation ( source)
<?php
$key = "AAAAAAAAABBBBGGGGGGGGKKKKKKKKKKKKKRRRRRRRRRRWWWWWWWWWWWWWWWWWWWWWWWWWWDDDDDDDDDDDDDDDDDDDDDDDDDDD";
var_dump(base64_decode($key));
var_dump(base64_decode($key, true)); // This is what JWT lib is using.
$newKey = base64_encode(base64_decode($key));
var_dump($key, $newKey);
var_dump(base64_decode($newKey));
var_dump(base64_decode($newKey, true)); // This is what JWT lib is using.