2017 © Pedro Peláez
 

library mess

Signed Message Encoder/Decoder Class

image

lastguest/mess

Signed Message Encoder/Decoder Class

  • Tuesday, August 27, 2013
  • by lastguest
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Mess

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

Scrutinizer Quality Score, (*2)

// 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 :, (*3)

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

$data_received :, (*4)

Some data.

The Versions

27/08 2013

dev-master

9999999-dev

Signed Message Encoder/Decoder Class

  Sources   Download