UNPKG

hanewinpgp

Version:

PGP / GnuPG / OpenPGP Message Encryption in JavaScript by Herbert Hanewinkel.

14 lines (9 loc) 390 B
<a name="encrypt"></a> ## encrypt(key, plaintext) ⇒ <code>string</code> Encrypt a message using the supplied key object. **Kind**: global function **Returns**: <code>string</code> - ASCII-armored encrypted text. | Param | Type | Description | | --- | --- | --- | | key | <code>object</code> | Object from extract(). | | plaintext | <code>string</code> | The message to encrypt. |