Download the PHP package jsq/psr6-encrypting-decorator without Composer

On this page you can find all versions of the php package jsq/psr6-encrypting-decorator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package psr6-encrypting-decorator

PSR-6 Cache Encrypter

Build Status Scrutinizer Code Quality Code Coverage Apache 2 License Total Downloads Author

Having to encrypt your data at rest shouldn't keep you from using the open-source tools you know and love. If you have data that needs a higher degree of security than the rest of your cache, you can store and access it via an encrypting PoolDecorator.

Caveats

Encryption and decryption are both expensive operations, and frequent reads from an encrypted data store can quickly become a bottleneck in otherwise performant applications. Use encrypted caches sparingly.

Usage

This package provides two cache decorators, one that encrypts data using a pass phrase and one that does so with a key pair.

First, create your PSR-6 cache as you normally would, then wrap your cache with an encrypting decorator:

Then use your $cache and $encryptedCache like you normally would:

Though your regular cache and encrypted cache share a storage layer and a keyspace, they will not be able to read each other's data. The $encryptedCache will return false for isHit if the underlying data is not encrypted, and the regular $cache will return gibberish if asked to read encrypted data.

Encrypting your cache with a key pair

If you'd rather not rely on a shared password, the Envelope\PoolDecorator can secure your sensitive cache entries using a public/private key pair.

The certificate can be a valid x509 certificate, a path to a PEM-encoded certificate file (the path must be prefaced with file://), or a PEM-encoded certificate string. The private key can be a path to a PEM-encoded private key file (the path must be prefaced with file://), or a PEM-encoded certificate string.

Encrypting your cache as Iron tokens

This library also supports encryption compatible with the Iron library. This can be useful if you would like to share a cache between multiple applications, even ones written in different languages. The Iron specification details how to seal JSON objects, so the Iron decorator will encode data passed to it as JSON before encrypting it. Decrypted items will be returned as arrays.


All versions of psr6-encrypting-decorator with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5|^7.0
ext-openssl Version *
psr/cache Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jsq/psr6-encrypting-decorator contains the following files

Loading the files please wait ....