Lines Matching refs:plaintext
464 const plaintext = 'Keep this a secret? No! Tell everyone about node.js!';
467 // Encrypt plaintext which is in utf8 format
469 let ciph = cipher.update(plaintext, 'utf8', 'hex');
477 assert.strictEqual(txt, plaintext);
484 const plaintext =
490 // Encrypt plaintext which is in utf8 format
492 let ciph = cipher.update(plaintext, 'utf8', 'base64');
499 assert.strictEqual(txt, plaintext);
505 const plaintext =
510 let ciph = cipher.update(plaintext, 'utf8', 'hex');
517 assert.strictEqual(txt, plaintext);
523 const plaintext =
528 let ciph = cipher.update(plaintext, 'utf8', 'buffer');
535 assert.strictEqual(txt, plaintext);
541 const plaintext =
546 let ciph = cipher.update(plaintext, 'utf8', 'buffer');
553 assert.strictEqual(txt, plaintext);