paragonie/ciphersweet
Composer 安装命令:
composer require paragonie/ciphersweet
包简介
Searchable field-level encryption library for relational databases
关键字:
README 文档
README
CipherSweet is a backend library developed by Paragon Initiative Enterprises for implementing searchable field-level encryption.
Requires PHP 8.1 or newer.
If you want to use CipherSweet on an older version of PHP (5.5+), use CipherSweet v3.
Before adding searchable encryption support to your project, make sure you understand the appropriate threat model for your use case. At a minimum, you will want your application and database server to be running on separate cloud instances / virtual machines. (Even better: Separate bare-metal hardware.)
CipherSweet is available under the very permissive ISC License which allows you to use CipherSweet in any of your PHP projects, commercial or noncommercial, open source or proprietary, at no cost to you.
CipherSweet Features at a Glance
- Encryption that targets the 256-bit security level (using AEAD modes with extended nonces to minimize users' rekeying burden).
- Compliance-Specific Protocol Support. Multiple backends to satisfy a
diverse range of compliance requirements. More can be added as needed:
BoringCryptouses libsodium, the de facto standard encryption library for software developers. Algorithm details.FIPSCryptoonly uses the cryptographic algorithms covered by the FIPS 140-3 recommendations to avoid auditing complexity. Algorithm details.
- Key separation. Each column is encrypted with a different key, all of which are derived from your master encryption key using secure key-splitting algorithms.
- Key management integration. CipherSweet supports integration with Key Management solutions for storing and retrieving the master encryption key.
- Searchable Encryption. CipherSweet uses
blind indexing
with the fuzzier and Bloom filter strategies to allow fast ciphertext search
with minimal data leakage.
- Each blind index on each column uses a distinct key from your encryption key and each other blind index key.
- This doesn't allow for
LIKEoperators or regular expression searching, but it does allow you to index transformations (e.g. substrings) of the plaintext, hashed under a distinct key.
- Adaptability. CipherSweet has a database- and product-agnostic design, so it should be easy to write an adapter to use CipherSweet in any PHP-based software.
- File/stream encryption. CipherSweet has an API for encrypting files (or other PHP streams) that provides authenticated encryption that defeats TOCTOU attacks with minimal overhead. Learn more.
Installing CipherSweet
Use Composer.
composer require paragonie/ciphersweet:^4
If you're intending to use CipherSweet on an older version of PHP, use the v3 branch:
composer require paragonie/ciphersweet:^3
Using CipherSweet
Please refer to the documentation to learn how to use CipherSweet.
Security experts may be interested in the security properties of our design.
Integration Support
Please feel free to create an issue if you'd like to integrate CipherSweet with your software.
CipherSweet Adapters for PHP Frameworks
- Eloquent ORM Adapter for Laravel developers
- Doctrine ORM Adapter for Symfony developers
CipherSweet in Other Languages
Why "CipherSweet"?
CipherSweet was originally intended for use in SuiteCRM (a fork of the SugarCRM Community Edition) and related products, although there is nothing preventing its use in other products.
Therefore, we opted for a pun on "ciphersuite" that pays homage to the open source heritage of the project we designed this library for.
If the wordplay is too heavy, feel free to just call it "Sweet", or juxtapose the two component nouns and call it "SweetCipher" in spoken conversation.
Support Contracts
If your company uses this library in their products or services, you may be interested in purchasing a support contract from Paragon Initiative Enterprises.
paragonie/ciphersweet 适用场景与选型建议
paragonie/ciphersweet 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.4M 次下载、GitHub Stars 达 467, 最近一次更新时间为 2018 年 04 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cryptography」 「crm」 「encryption」 「encrypt」 「libsodium」 「database encryption」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 paragonie/ciphersweet 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 paragonie/ciphersweet 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 paragonie/ciphersweet 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
DUKPT implementation in PHP
A PHP client for the Salesforce SOAP API
A simple PHP class to encrypt a string and decrypt an encrypted string
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Encryption with AES-256 and HMAC-SHA256
Allows installation of Laravel where the PHP Mcrypt extension is not available. Provides encryption using OpenSSL, or by disabling encryption entierly.
统计信息
- 总下载量: 1.4M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 468
- 点击次数: 32
- 依赖项目数: 23
- 推荐数: 0
其他信息
- 授权协议: ISC
- 更新时间: 2018-04-29