1.2.1 • Published 1 year ago
http_ece v1.2.1
encrypted-content-encoding
A simple implementation of the HTTP encrypted content-encoding
Use
var ece = require('http_ece');
var crypto = require('crypto')
var parameters = {
key: crypto.randomBytes(16).toString('base64url'),
salt: crypto.randomBytes(16).toString('base64url')
};
var encrypted = ece.encrypt(data, parameters);
var decrypted = ece.decrypt(encrypted, parameters);
require('assert').equal(decrypted.compare(data), 0);This also supports the static-ephemeral ECDH mode. The source explains how.
TODO
Use the node streams API instead of the legacy APIs.
1.2.1
1 year ago
1.2.0
2 years ago
1.1.0
7 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.2
8 years ago
1.0.0
8 years ago
0.7.2
9 years ago
0.7.1
9 years ago
0.7.0
9 years ago
0.6.4
9 years ago
0.6.3
9 years ago
0.6.0
9 years ago
0.5.2
9 years ago
0.5.1
10 years ago
0.5.0
10 years ago
0.4.5
10 years ago
0.4.4
10 years ago
0.4.3
10 years ago
0.4.1
10 years ago
0.4.0
10 years ago
0.2.0
10 years ago