Skip to content

x-sign-payloadSecure Request Signing

Cross-language HMAC-SHA256/SHA512 payload verification for PHP and JavaScript

Supported Languages & Frameworks

LanguageFrameworkStatus
PHPLaravel 10+✅ Available
PHPCakePHP 4+✅ Available
PHPCodeIgniter 4✅ Available
JavaScriptNode.js / Browser✅ Available
PythonDjango / Flask🚧 Coming Soon
RubyRuby on Rails🚧 Coming Soon

🔐 Payload Signer Playground

Try generating signed payloads with different configurations.

Configuration

Payload Data

Generated Output

1777528686941
Enter secret and payload to generate
1777528686941.{"email":"user@example.com","name":"John Doe"}

Code Example

import { XSignClient } from 'x-sign-payload';

const xSign = new XSignClient({
  secret: 'your-secret',
  algorithm: 'sha256',
  enableTimestamp: true
});

const payload = {
  "email": "user@example.com",
  "name": "John Doe"
};

const headers = await xSign.sign(payload);
// headers = {
//   'X-Timestamp': '1777528686941',
//   'X-Signature': 'sha256=...',
//   'Content-Type': 'application/json'
// }

Try It Now

Generate a signed payload right here. Configure your secret key, choose whether to include timestamp protection, and see the generated signature in real-time. Toggle between different programming languages to see the implementation code.

Released under the MIT License.