https://github.com/medooze/sframe
SFrame.js pure javascript implementation based on webcrypto
https://github.com/medooze/sframe
Last synced: about 1 month ago
JSON representation
SFrame.js pure javascript implementation based on webcrypto
- Host: GitHub
- URL: https://github.com/medooze/sframe
- Owner: medooze
- License: mit
- Archived: true
- Created: 2020-05-17T14:58:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T12:24:20.000Z (over 2 years ago)
- Last Synced: 2025-04-21T06:57:34.798Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://tools.ietf.org/html/draft-omara-sframe-00
- Size: 242 KB
- Stars: 51
- Watchers: 11
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SFrame.js
Pure javascript library implementing the SFrame end to end encryption based on webcrypto.## Differences from sframe current draft
- keyIds are used as senderIds.
- IV contains the keyId and the frame counter to ensure uniquenes when using same encryption key for all participants.
- keysIds are limited to 5 bytes long to avoid javascirpt signed/unsigned issues.
- Option to skip the vp8 payload header and send it in clear.
- Ed25519 is not used for sign/verify as it is not available in webcrypto, ECDSA with P-512 is used instead.
## Keying
This library does not provide any keying mechanism, but it must be provide by the application instead.
Unlike the sframe draft, this library requires each participant to have a numeric `senderId` that will be used as `keyId` in the sframe header.
## API
Check [api.md](/api.md)
## Example
Check the `example` directory for a loopback example implementation.
## License
MIT