ciphersweet | Fast , searchable field-level encryption for PHP projects | Encryption library
kandi X-RAY | ciphersweet Summary
kandi X-RAY | ciphersweet Summary
CipherSweet is a backend library developed by Paragon Initiative Enterprises for implementing searchable field-level encryption. Requires PHP 5.5+, although 7.2 is recommended for better performance. 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.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Perform stream decryption .
- Hash by HKDF .
- Encrypts a stream using a CSP .
- Calculates a BLIND index .
- Recommendations for a population .
- Get packed pieces .
- Get a blind index .
- Decrypt a message .
- Process an array
- Decrypts a file with a password .
ciphersweet Key Features
ciphersweet Examples and Code Snippets
Community Discussions
Trending Discussions on ciphersweet
QUESTION
I need some help by using the function decryptRow(). ...
ANSWER
Answered 2021-Mar-24 at 23:39The exception is due to null
being passed to decrypt()
here: https://github.com/paragonie/ciphersweet/blob/f73aaea31f743dad8145f344d93503c4d9f950a8/src/EncryptedRow.php#L334 . Either $row[$field]
contain null, or there's no such element in $row
.
Inspect it with a debugger, or add some debug statements into your catch
(e.g. var_dump($rowP, $row)
), then check if the data contained in $row
is what you expect it to be. It's also worth checking the list of fields in $rowP->fieldsToEncrypt
.
QUESTION
I installed ciphersweet on my server using composer but when i try to import the library i'm getting this error.
...ANSWER
Answered 2020-Feb-11 at 03:43You need to load the vendor/autoload.php
in order for the installed packages to work.
For example, add require_once __DIR__ . '/vendor/autoload.php';
to the top of your file.
This will make php aware of the namespaces in your packages.
You might need to change this if your files are not in the root directory of your application. For example, if your files are in app/
directory, those files need to use require_once __DIR__ . '/../vendor/autoload.php'
See https://getcomposer.org/doc/01-basic-usage.md#autoloading for more details.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ciphersweet
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page