An open API service indexing awesome lists of open source software.

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

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