Attributes
Includes Deno configuration
Repository
Current version released
3 years ago
Dependencies
std
http_ece - HTTP Encrypted Content-Encoding for Deno & web browsers
This library is an implementation of HTTP Encrypted Content-Encoding scheme(RFC 8188).
Implemented schemes
This crate implements only the published Web Push Encryption scheme
(aes128gcm), and not the legacy scheme from earlier drafts.
It does not support, and we have no plans to ever support, the obsoletes
aesgmc and aesgcm128 schemes from earlier drafts.
Usage
import * as ece from "https://deno.land/x/http_ece@v0.0.2/mod.ts";
const input = new TextEncoder().encode("I am the walrus");
const secret = new TextEncoder().encode("my_secret");
const encrypted = await ece.encrypt(input, secret);
const decrypted = await ece.decrypt(encrypted, secret);
console.log(new TextDecoder().decode(decrypted));
// output: I am the walrusFeatures
aes128gcmencryption and decryption- custom padding strategy supported
- Web browser compatible
TODO
- Support the Streams API
Contributing
If you want to contribute to http_ece to add a feature or improve the code
contact me at negrel.dev@protonmail.com,
open an issue or make a
pull request.
:stars: Show your support
Please give a ⭐ if this project helped you!
📜 License
MIT © Alexandre Negrel