oat-sa / extension-tao-encryption
Tao 加密
v6.1.2
2023-08-10 16:17 UTC
Requires
- php: >=5.5
- oat-sa/extension-tao-delivery: >=15.0.0
- oat-sa/extension-tao-delivery-rdf: >=14.0.0
- oat-sa/extension-tao-lti: >=12.0.0
- oat-sa/extension-tao-oauth: >=6.0.0
- oat-sa/extension-tao-outcome: >=13.0.0
- oat-sa/extension-tao-proctoring: >=20.0.0
- oat-sa/extension-tao-publishing: >=6.0.0
- oat-sa/extension-tao-sync: >=8.0.0
- oat-sa/extension-tao-testcenter: >=10.0.0
- oat-sa/extension-tao-testqti: >=41.0.0
- oat-sa/extension-tao-testtaker: >=8.0.0
- oat-sa/generis: >=14.0.0
- oat-sa/tao-core: >=47.0.0
- phpseclib/phpseclib: ~2.0.0
- dev-master
- v6.1.2
- v6.1.1
- v6.1.0
- v6.0.1
- v6.0.0
- v5.3.0.1
- v5.3.0
- v5.2.0
- v5.1.0
- v5.0.1
- v5.0.0
- v4.0.0
- v3.2.2
- v3.2.1
- v3.2.0.1
- v3.2.0
- v3.1.0
- v3.0.0
- v2.0.1
- v2.0.0
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.0
- v0.16.1
- v0.16.0
- v0.15.0
- v0.14.0
- v0.13.1
- v0.13.0
- v0.12.0
- v0.11.1
- v0.9.1
- v0.8.4
- v0.8.3
- v0.8.1
- v0.8.0
- v0.7.1
- v0.6.2
- v0.6.1
- v0.3.0
- v0.2.0
- dev-feature/sonarqube-integration
- dev-develop
- dev-fix/update-autoRelease-action-with-bot-user
- dev-remove-jenkinsfile
- dev-feature/TAO-8584/refactor_encrypted_assembler
- dev-backport/depp-offline
- dev-feature/TAO-8853/export_encrypted_assembly
- dev-depp-2.0.1
- dev-feature/TAO-7191/create_sync_dashboard_on_central_server
- dev-fix/delete-variable-after-decrypt
- dev-depp/TAO-7070
- dev-fix/throw-exp-if-not-exists
- dev-feature/TAO-7008/launch-lti-local
- dev-release-0.8.4
- dev-feature/add-decrypt-button
- dev-fix/TAO-6250/fix-some-sync-issue
This package is auto-updated.
Last update: 2024-09-16 16:10:24 UTC
README
本文介绍了 Tao 加密的运行机制,重点关注数据库层面敏感数据信息的加密。
安装
您可以将 Tao 加密作为一个标准的 TAO 扩展添加到当前的 TAO 实例中。
$ composer require oat-sa/extension-tao-encryption
支持的加密服务
1. 结果加密
加密
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\SetupAsymmetricKeys' generate
注意:
此命令将生成两个密钥(公钥和私钥)并将它们保存在文件系统中。
注意:
在客户端 Tao 实例中。您需要复制公钥。
注意:
在服务器 Tao 实例中。您需要两个密钥
解密
为了解密您的结果,请使用以下脚本,通过传递交付 ID。
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\DecryptResults' -d <delivery_id>
或者通过传递 -all 参数
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\DecryptResults' -all
注意:
此命令将解密结果并存储在交付结果存储设置中。
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\SetupEncryptedResultStorage'
为了同步加密结果,需要在服务器 Tao 实例和客户端上运行此脚本。
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\SetupEncryptedSyncResult'
2. 测试状态数据加密
为了使用加密的状态测试服务,您必须在 Tao 客户端实例上运行以下命令
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\SetupEncryptedStateStorage'
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\SetupEncryptedMonitoringService'
此服务使用对称算法加密信息。
3. 用户加密
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\SetupEncryptedUser'
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\SetupUserEventSubscription'
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\SetupUserSynchronizer'
注意:
您应该在客户端 Tao 实例上运行此命令
4. 设置加密文件系统
$ sudo -u www-data php index.php "oat\taoEncryption\scripts\tools\SetupEncryptedFileSystem" -f private -e taoEncryption/symmetricEncryptionService -k taoEncryption/symmetricFileKeyProvider
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\SetupDeliveryEncrypted'
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\SetupUserApplicationKey'
$ sudo -u www-data php index.php 'oat\taoEncryption\scripts\tools\SetupRdfDeliveryEncrypted'
注意:
额外功能:您可以将 TAO 文件系统设置为加密。以下命令行启用了对
private
文件系统的加密,使用注册的 ID 为taoEncryption/symmetricEncryptionService
的服务进行数据加密/解密。
sudo -u www-data php index.php "oat\taoEncryption\scripts\tools\SetupEncryptedFileSystem" -f private -e taoEncryption/symmetricEncryptionService