<commit_before>var assert = require('assert'),
    fs = require('fs'),
    xmlenc = require('../lib');

var crypto = require('crypto');

describe('integration', function() {

  it('should decrypt assertion with aes128', function (done) {
  	var payload = 'hello world';
  	//xmlenc.encrypt(payload);
	//assert.equal(xmlenc.decrypt(xmlenc.encrypt(payload)), payload);
    done();
  });

  it('encryptKeyInfoWithScheme', function(done){
  	var options = {
      rsa_pub: fs.readFileSync(__dirname + '/test-auth0_rsa.pub'),
      pem: fs.readFileSync(__dirname + '/test-auth0.pem'),
      key: fs.readFileSync(__dirname + '/test-auth0.key'),
      encryptionAlgorithm: 'http://www.w3.org/2001/04/xmlenc#tripledes-cbc',
      keyEncryptionAlgorighm: 'http://www.w3.org/2001/04/xmlenc#rsa-1_5'
    };
    xmlenc.encryptKeyInfoWithScheme('password', options, 'RSA-OAEP', function() {

    	//console.log('callback');
	});
    done();
  });

});
<commit_msg>callback<commit_after>var assert = require('assert'),
    fs = require('fs'),
    xmlenc = require('../lib');

var crypto = require('crypto');

describe('integration', function() {

  it('should decrypt assertion with aes128', function (done) {
  	var payload = 'hello world';
  	//xmlenc.encrypt(payload);
	//assert.equal(xmlenc.decrypt(xmlenc.encrypt(payload)), payload);
    done();
  });

  it('encryptKeyInfoWithScheme', function(done){
  	var options = {
      rsa_pub: fs.readFileSync(__dirname + '/test-auth0_rsa.pub'),
      pem: fs.readFileSync(__dirname + '/test-auth0.pem'),
      key: fs.readFileSync(__dirname + '/test-auth0.key'),
      encryptionAlgorithm: 'http://www.w3.org/2001/04/xmlenc#tripledes-cbc',
      keyEncryptionAlgorighm: 'http://www.w3.org/2001/04/xmlenc#rsa-1_5'
    };
    xmlenc.encryptKeyInfoWithScheme('password', options, 'RSA-OAEP', function(err, result) {
    	console.log(result);
    });
    done();
  });

});

{'fraction_non_alphanumeric': 0.18434873949579833, 'fraction_numerical': 0.023109243697478993, 'mean_word_length': 3.83502538071066, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2460359', 'n_tokens_mistral': 691, 'n_tokens_neox': 659, 'n_words': 101}