this.description="Input: the message you want to encrypt.\n<br><br>\nArguments: the ASCII-armoured PGP public key of the recipient.\n<br><br>\nPretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.\n<br><br>\nThis function uses the Keybase implementation of PGP.";
this.inputType="string";
this.outputType="string";
this.args=[
{
"name":"Public key of recipient",
"type":"text",
"value":""
}
];
}
/**
*@param{string}input
*@param{Object[]}args
*@returns{string}
*/
asyncrun(input,args){
constplaintextMessage=input,
plainPubKey=args[0];
letkey,
encryptedMessage;
if(!plainPubKey)return"Enter the public key of the recipient.";