https://github.com/ndum/laravel-seb
Laravel Package for generating encrypted SEB (Safe Exam Browser) exam configurations
https://github.com/ndum/laravel-seb
encryption exams laravel pbkdf2 php80 safeexambrowser seb
Last synced: 6 months ago
JSON representation
Laravel Package for generating encrypted SEB (Safe Exam Browser) exam configurations
- Host: GitHub
- URL: https://github.com/ndum/laravel-seb
- Owner: ndum
- License: mit
- Created: 2021-10-17T16:06:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-28T14:32:26.000Z (about 1 year ago)
- Last Synced: 2025-11-10T16:41:21.754Z (7 months ago)
- Topics: encryption, exams, laravel, pbkdf2, php80, safeexambrowser, seb
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-seb
This Laravel-Package provides the possibility to generate encrypted [SEB](https://safeexambrowser.org/news_de.html) (Safe Exam Browser) configurations.
its mainly used to generate automatic seb-exams configurations with secure defaults options.
## Requirements
Laravel 8 or newer with php8 and enabled ext-openssl, ext-zlib
## Limititations
Its can only be used for password-encrypted exams (client-configurations currently are not supported)
## Installation
Install via Composer.
```bash
$ composer require ndum/laravel-seb
```
## Examples
**_NOTE:_** For production - Please use secure passwords and a secure seb-config!
### Parameters
```
$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
```
##### Traditionally:
```php
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);
```
##### Facade:
```php
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);
```
## Issues / Contributions
Directly via [GitHub](https://github.com/ndum/laravel-seb/issues)
## License
This project is licensed under the MIT License - see the [LICENSE-File](LICENSE) for details