SilverEngine is a powerful PHP Dynamical MVC framework built for developers who need a simple and elegant toolkit to create powerfull full-featured web applications.
The Documentation of the framework is still work in progress (WIP).
Change the name to use facade
namespace App\Facades;
use Silver\Components\Crypto\Facade;
class Example extends Facade
{
protected static function getClass()
{
return '\App\Helper\Example';
}
}
- if password is null will get by default password from env Env::get('app_key');
$crypto = new Crypto();
$crypto->encode('my frist encode hash, 'testhash');
echo $crypto->decode('k4j35hk4jh52k43ljh5kk2l35j', 'testhash');
$crypto = new Crypto();
$crypto->encodeArray('my frist encode hash, 'testhash');
echo $crypto->decode('k4j35hk4jh52k43ljh5kk2l35j', 'testhash');
$crypto = new Crypto();
$crypto->makeHash('my frist encode hash');
$crypto = new Crypto();
$crypto->verifyHash('my frist encode hash', 'jh4j35g3j4h5gjk3hgk2jh5ghjhj');
Thank you for considering contributing to the framework! The contribution guide can be found in the documentation.
If you discover a security vulnerability within our engine, please send us email at support@silverengine.net
The Silver Engine framework is open-sourced software licensed under the MIT license.