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 use Pagekit\Auth\Auth; use Pagekit\Auth\Encoder\NativePasswordEncoder; use Pagekit\..

Decoded Output download

<?php

use Pagekit\Auth\Auth;
use Pagekit\Auth\Encoder\NativePasswordEncoder;
use Pagekit\Auth\Handler\DatabaseHandler;
use RandomLib\Factory;

return [

    'name' => 'auth',

    'main' => function ($app) {

        $app['auth'] = function ($app) {
            return new Auth($app['events'], $app['auth.handler']);
        };

        $app['auth.password'] = function () {
            return new NativePasswordEncoder;
        };

        $app['auth.random'] = function () {
            return (new Factory)->getLowStrengthGenerator();
        };

        $app['auth.handler'] = function ($app) {
            return new DatabaseHandler($app['db'], $app['request.stack'], $app['cookie'], $app['auth.random'], $this->config);
        };

    },

    'autoload' => [

        'Pagekit\\Auth\\' => 'src'

    ],

    'config' => [

        'timeout' => 900,
        'table' => 'auth',
        'cookie'   => [
            'name' => '',
            'lifetime' => 315360000
        ]

    ]

];
 ?>

Did this file decode correctly?

Original Code

<?php

use Pagekit\Auth\Auth;
use Pagekit\Auth\Encoder\NativePasswordEncoder;
use Pagekit\Auth\Handler\DatabaseHandler;
use RandomLib\Factory;

return [

    'name' => 'auth',

    'main' => function ($app) {

        $app['auth'] = function ($app) {
            return new Auth($app['events'], $app['auth.handler']);
        };

        $app['auth.password'] = function () {
            return new NativePasswordEncoder;
        };

        $app['auth.random'] = function () {
            return (new Factory)->getLowStrengthGenerator();
        };

        $app['auth.handler'] = function ($app) {
            return new DatabaseHandler($app['db'], $app['request.stack'], $app['cookie'], $app['auth.random'], $this->config);
        };

    },

    'autoload' => [

        'Pagekit\\Auth\\' => 'src'

    ],

    'config' => [

        'timeout' => 900,
        'table' => 'auth',
        'cookie'   => [
            'name' => '',
            'lifetime' => 315360000
        ]

    ]

];

Function Calls

None

Variables

None

Stats

MD5 1f3d5efc72293902febb05f3541ce52f
Eval Count 0
Decode Time 94 ms