2017 © Pedro Peláez
 

library encrypted-cookie

Allows easy management of encrypted cookies

image

rosio/encrypted-cookie

Allows easy management of encrypted cookies

  • Tuesday, October 21, 2014
  • by ben-rosio
  • Repository
  • 2 Watchers
  • 6 Stars
  • 4,446 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 9 Versions
  • 8 % Grown

The README.md

Encrypted Cookie

Build Status, (*1)

Library provides basic functionality to easily create and manage encrypted cookies., (*2)

Based off of RFC 6896 KoanLogic's Secure Cookie Sessions for HTTP., (*3)

Testing

To run unit tests:, (*4)

  1. composer install
  2. vendor/bin/phpunit

Quick Example

use Rosio\EncryptedCookie\CookieStorage;
use Rosio\EncryptedCookie\Cookie;
use Rosio\EncryptedCookie\CryptoSystem\AES_SHA;

// Used to create cookies with a given cryptoSystem
$storage = new CookieStorage(new AES_SHA('32charactercryptokeymustbe32chrs', 'HMACKey'));

// Create a cookie
$data = 'blah';
$cookie = Cookie::create('testCookie', $data);
$storage->save($cookie);

// Load the cookie
$newCookie = $storage->load('testCookie'); // Returns a PartialCookie
echo $newCookie->getData();

The Versions

21/10 2014

dev-development

dev-development

Allows easy management of encrypted cookies

  Sources   Download

MIT

The Requires

  • ext-mcrypt *

 

The Development Requires

by Avatar Ben

21/10 2014

dev-master

9999999-dev

Allows easy management of encrypted cookies

  Sources   Download

MIT

The Requires

  • ext-mcrypt *

 

The Development Requires

by Avatar Ben

04/03 2014

v1.0.0

1.0.0.0

Allows easy management of encrypted cookies

  Sources   Download

MIT

The Requires

  • ext-mcrypt *

 

The Development Requires

by Avatar Ben

03/03 2014

v0.1.5

0.1.5.0

Allows easy management of encrypted cookies

  Sources   Download

MIT

The Requires

  • ext-mcrypt *

 

The Development Requires

by Avatar Ben

03/03 2014

v0.1.4

0.1.4.0

Allows easy management of encrypted cookies

  Sources   Download

MIT

The Requires

  • ext-mcrypt *

 

The Development Requires

by Avatar Ben

25/02 2014

v0.1.3

0.1.3.0

Allows easy management of encrypted cookies

  Sources   Download

MIT

The Requires

  • ext-mcrypt *

 

The Development Requires

by Avatar Ben

25/02 2014

v0.1.2

0.1.2.0

Allows easy management of encrypted cookies

  Sources   Download

The Requires

  • ext-mcrypt *

 

The Development Requires

by Avatar Ben

25/02 2014

v0.1.1

0.1.1.0

Allows easy management of encrypted cookies

  Sources   Download

The Requires

  • ext-mcrypt *

 

The Development Requires

by Avatar Ben

24/02 2014

v0.1.0

0.1.0.0

Allows easy management of encrypted cookies

  Sources   Download

The Requires

  • ext-mcrypt *

 

The Development Requires

by Avatar Ben