MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / encryptMessage

Method encryptMessage

src/controller/app.controller.js:280–294  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

278 }
279
280 async encryptMessage(options) {
281 options.unlockKey = async options => {
282 options.reason = 'PWD_DIALOG_REASON_SIGN';
283 const result = await this.unlockKey(options);
284 return result;
285 };
286 if (prefs.prefs.general.auto_add_primary) {
287 // get the sender key fingerprint
288 const defaultKeyFpr = await getDefaultKeyFpr(MAIN_KEYRING_ID);
289 if (defaultKeyFpr && !options.encryptionKeyFprs.includes(defaultKeyFpr)) {
290 options.encryptionKeyFprs.push(defaultKeyFpr);
291 }
292 }
293 return encryptMessage(options);
294 }
295
296 async encryptFile(options) {
297 options.unlockKey = async options => {

Callers 1

handleEncryptFunction · 0.45

Calls 4

unlockKeyMethod · 0.95
getDefaultKeyFprFunction · 0.90
encryptMessageFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected