MCPcopy
hub / github.com/mailvelope/mailvelope / encrypt

Method encrypt

src/client-API/client-api.js:605–607  ·  view source on GitHub ↗

* Requests the encryption of the editor content for the given recipients. * @param {Array. } recipients - list of email addresses for public key lookup and encryption * @returns {Promise. } * @throws {Error} error.code = 'ENCRYPT_IN_PROGRESS' *

(recipients)

Source from the content-addressed store, hash-verified

603 * });
604 */
605 encrypt(recipients) {
606 return send('editor-encrypt', {recipients, editorId: this.editorId});
607 }
608
609 /**
610 * Encrypt and sign the content of the editor with the default key of the user.

Callers 5

test-harness.jsFile · 0.45
symEncryptFunction · 0.45
encryptMessageFunction · 0.45
encryptFileFunction · 0.45
encryptFunction · 0.45

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected