Skip to content

Instantly share code, notes, and snippets.

@ginsterbusch
Created August 19, 2019 18:30
Show Gist options
  • Save ginsterbusch/590bf349927685b094bff6e084a86f09 to your computer and use it in GitHub Desktop.
Save ginsterbusch/590bf349927685b094bff6e084a86f09 to your computer and use it in GitHub Desktop.

Revisions

  1. ginsterbusch created this gist Aug 19, 2019.
    9 changes: 9 additions & 0 deletions cryptic-bs.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <?php

    $x = 'eyJoYWxsbyI6IndlbHQiLCJzb25nLXRpdGVsIjp7Im1laW4iOiJnZWhpcm4iLCJkZWluIjoiZ2VoaXJuIn0sInVybCI6Imh0dHBzJTNBJTJGJTJGdXNhYmlsaXR5LWlkZWFsaXN0Lm5ldCUyRiUyM2tvbnRha3QiLCJlaW5zX3BsdXMiOnRydWV9';

    $y = base64_decode( $x );
    $z = json_decode( urldecode( $y ), true ); // true ergibt ein array, ohne haben wir reine StdClass-Objektorgie


    ?>