direct session key manipulation and encryption/decryption

This commit is contained in:
Bart Butler
2015-04-01 00:13:31 -07:00
committed by Tankred Hase
parent 91d35ff99c
commit 60fb6ba18d
6 changed files with 282 additions and 58 deletions

View File

@@ -259,10 +259,15 @@ describe('Basic', function() {
expect(pubKey).to.exist;
openpgp.encryptMessage([pubKey], plaintext, [password1, password2]).then(function(encrypted) {
var params = {
packets: true
};
openpgp.encryptMessage([pubKey], plaintext, [password1, password2], params).then(function(encrypted) {
expect(encrypted).to.exist;
encrypted = encrypted.join('');
encrypted = openpgp.armor.encode(openpgp.enums.armor.message, encrypted);
message = openpgp.message.readArmored(encrypted);
expect(message).to.exist;