File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1+ * @ auth0/product-security-engineer
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ W3C XML Encryption implementation for node.js (http://www.w3.org/TR/xmlenc-core/
99### encrypt
1010
1111~~~ js
12- var xmlenc = require (' xmlenc ' );
12+ var xmlenc = require (' xml-encryption ' );
1313
1414var options = {
1515 rsa_pub: fs .readFileSync (__dirname + ' /your_rsa.pub' ),
1616 pem: fs .readFileSync (__dirname + ' /your_public_cert.pem' ),
1717 encryptionAlgorithm: ' http://www.w3.org/2001/04/xmlenc#aes256-cbc' ,
18- keyEncryptionAlgorighm : ' http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p'
18+ keyEncryptionAlgorithm : ' http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p'
1919};
2020
2121xmlenc .encrypt (' content to encrypt' , options, function (err , result ) {
@@ -66,11 +66,11 @@ decrypted content
6666
6767Currently the library supports:
6868
69- * EncryptedKey to transport symmetric key using:
69+ * EncryptedKey to transport symmetric key using:
7070 * http: // www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p
7171 * http: // www.w3.org/2001/04/xmlenc#rsa-1_5
7272
73- * EncryptedData using:
73+ * EncryptedData using:
7474 * http: // www.w3.org/2001/04/xmlenc#aes128-cbc
7575 * http: // www.w3.org/2001/04/xmlenc#aes256-cbc
7676 * http: // www.w3.org/2001/04/xmlenc#tripledes-cbc
You can’t perform that action at this time.
0 commit comments