UNPKG

cleansend

Version:

A TypeScript implementation of the OpenMsg Protocol - secure, decentralized messaging system with end-to-end encryption for cross-domain communication

25 lines 1 kB
/** * OpenMsg Message Routes * * This module handles encrypted message receiving and verification for the * OpenMsg protocol. It implements secure message delivery with integrity * checking, replay attack prevention, and cross-domain authentication. * * Message Flow: * 1. Sender encrypts message with connection's encryption key * 2. Sender creates verification hash with auth code and timestamp * 3. Sender posts encrypted package to recipient's server * 4. Recipient's server validates hash and decrypts message * 5. Recipient's server confirms authenticity with sender's server * 6. Message is stored in recipient's inbox * * Security Features: * - AES-256-GCM authenticated encryption * - SHA-256 hash verification with auth codes * - Timestamp-based replay attack prevention * - Cross-domain message confirmation * - Connection-based authorization */ declare const router: import("express-serve-static-core").Router; export default router; //# sourceMappingURL=messages.d.ts.map