How to use the xml-encryption.decryptKeyInfo function in xml-encryption

To help you get started, we’ve selected a few xml-encryption examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github auth0 / node-saml / test / saml11.tests.js View on Github external
xmlenc.decrypt(encrypted, { key: fs.readFileSync(__dirname + '/test-auth0.key')}, function(err, decrypted) {
          if (err) return done(err);
          
          var doc = new xmldom.DOMParser().parseFromString(decrypted);
          var subjectConfirmationNodes = doc.documentElement.getElementsByTagName('saml:SubjectConfirmation');
          assert.equal(2, subjectConfirmationNodes.length);
          for (var i=0;i

xml-encryption

[![Build Status](https://travis-ci.org/auth0/node-xml-encryption.png)](https://travis-ci.org/auth0/node-xml-encryption)

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis