I'm trying to encrypt text using OpenPGP, but it is not similar to the value generated by CLI

Command:

`gpg --recipient <Hex_Key_Id> --armor --always-trust --encrypt test_pwd.txt; rm -f test_pwd.txt

Node:

const publicKey = await openpgp.readKey({armoredKey: publicKeyArmored}); 
const encryptedSecret = await openpgp.encrypt({ 
     message: await openpgp.createMessage({text: plainSecret}), 
     encryptionKeys: publicKey, 
});
0

There are 0 best solutions below