Download the PHP package ellipse/cookie-encryption without Composer
On this page you can find all versions of the php package ellipse/cookie-encryption. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ellipse/cookie-encryption
More information about ellipse/cookie-encryption
Files in ellipse/cookie-encryption
Package cookie-encryption
Short Description Psr-15 middleware allowing to encrypt cookies using defuse/php-encryption
License MIT
Homepage https://github.com/ellipsephp/cookie-encryption
Informations about the package cookie-encryption
Cookie encryption
This package provides a Psr-15 middleware allowing to encrypt cookies using defuse/php-encryption.
Require php >= 7.3
Installation composer require ellipse/cookie-encryption
Run tests ./vendor/bin/kahlan
- Getting started
Getting started
This middleware takes an instance of Defuse\Crypto\Key
from the defuse/php-encryption package and an array of bypassed cookie names as parameters. It will use defuse encryption mechanism to decrypt the cookies attached to the Psr-7 request and encrypt the cookies attached to the Psr-7 response. The cookies with a name in the bypassed array will stay untouched. When the decryption fails for one cookie, its value is set as an empty string.
All versions of cookie-encryption with dependencies
psr/http-message Version ^1.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
dflydev/fig-cookies Version ^3.0
defuse/php-encryption Version ^2.1