mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-05 08:38:41 +00:00
direct session key manipulation and encryption/decryption
This commit is contained in:
committed by
Tankred Hase
parent
91d35ff99c
commit
60fb6ba18d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user