There is no license information available for the latest version (dev-master) of this package.

Signed Message Encoder/Decoder Class

dev-master 2013-08-27 08:07 UTC

This package is auto-updated.

Last update: 2024-11-16 21:20:47 UTC


README

Mess is a signed message encoder/decoder class useful for secure data passing to HTML forms or AJAX API calls.

Scrutinizer Quality Score

// Start Mess by passing a user secret code for securing origin of payloads
Mess::init(array(
  'secret' => 'this_is_my_secret',
));

// Test data
$data_to_send = "Some data.";

// Encode data into an URL-secure payload
// You can pass this to a get/post request or into a form input tag
$payload = Mess::pack($data_to_send);

$payload :

eNodyMkNgzAQBdBWoikg8iyyPUMZqeB74RblXDA3RO9ATk96CIljCw4atNymoM_vO18DO97_CdoeswVZ8wLLuhpcJ6ueBL1PkVZNWvE1oxiLc5csWg0KFa_DCpiVByYt5wWdkR2c
// If we want to retrieve data from a received payload :
$data_received = Mess::parse($payload);

$data_received :

Some data.