定制 ndum/laravel-seb 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ndum/laravel-seb

最新稳定版本:v1.5.0

Composer 安装命令:

composer require ndum/laravel-seb

包简介

Laravel Package for generating encrypted SEB (Safe Exam Browser) client configurations

README 文档

README

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.

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.

$ 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:
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:
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

License

This project is licensed under the MIT License - see the LICENSE-File for details

统计信息

  • 总下载量: 1.68k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-17