@agentdance/node-webrtc-srtp
v1.0.4
Published
RFC 3711 SRTP/SRTCP — AES-128-CM-HMAC-SHA1-80/32 and AES-128-GCM, RFC-verified key derivation, 64-bit replay window. Part of the @agentdance/node-webrtc stack.
Downloads
512
Maintainers
Readme
@agentdance/node-webrtc-srtp
RFC 3711 SRTP / SRTCP for Node.js — part of the @agentdance/node-webrtc pure-TypeScript WebRTC stack.
Features
- Profiles: AES-128-CM-HMAC-SHA1-80, AES-128-CM-HMAC-SHA1-32, AES-128-GCM
- RFC-verified key derivation (§4.3 test vectors)
- 64-bit sliding replay window; ROC rollover counter
- Zero native dependencies
Install
npm install @agentdance/node-webrtc-srtpUsage
import { createSrtpContext, srtpProtect, srtpUnprotect, ProtectionProfile } from '@agentdance/node-webrtc-srtp';
const ctx = createSrtpContext(ProtectionProfile.AES_128_CM_HMAC_SHA1_80, keyingMaterial);
const protected_ = srtpProtect(ctx, rtpPacket);
const unprotected = srtpUnprotect(ctx, protected_);Full Documentation
See the main package README for the complete API reference, usage examples, and architecture overview.
License
MIT
