This Laravel-Package provides the possibility to generate encrypted SEB (Safe Exam Browser) configurations. its mainly used to generate automatic seb-exams configurations with secure defaults options.
Laravel 8, 9 or 10 with php8 and enabled ext-openssl, ext-zlib
Its can only be used for password-encrypted exams (client-configurations currently are not supported)
Install via Composer.
$ composer require ndum/laravel-seb
NOTE: For production - Please use secure passwords and a secure seb-config!
$sebConfig = seb-config as json-array (show examples/example_seb_config.json)
$startPassword = encryption-password as string
$quitPassword = close-password as string
$adminPassword = admin-password as string
use Ndum\Laravel\SebConfigGenerator;
use Storage;
$config = Storage::disk('local')->get('/examples/example_seb_config.json'); // just as example...
$startPassword = 'test';
$quitPassword = 'test';
$adminPassword = 'test';
$sebConfig = json_decode($config, true);
$generator = new SebConfigGenerator();
$encryptedSebConfig = $generator->createSebConfig($sebConfig, $startPassword, $quitPassword, $adminPassword);
dd($encryptedSebConfig);
use Ndum\Laravel\Facades\SebConfigGenerator;
use Storage;
$config = Storage::disk('local')->get('/examples/example_seb_config.json'); // just as example...
$startPassword = 'test';
$quitPassword = 'test';
$adminPassword = 'test';
$sebConfig = json_decode($config, true);
$encryptedSebConfig = SebConfigGenerator::createSebConfig($sebConfig, $startPassword, $quitPassword, $adminPassword);
dd($encryptedSebConfig);
Directly via GitHub
This project is licensed under the MIT License - see the LICENSE-File for details