[openpgpjs] publicKeyId from message

2015-12-17 Thread Andrew
I am trying to get the publicKeyId from the encrypted message. pgpMessage = openpgp.message.readArmored(pgpMessage); console.log( JSON.stringify( pgpMessage ) ) returns:

Re: [openpgpjs] publicKeyId from message

2015-12-17 Thread Tio Oscar
There is not docunented, but there are a method called toHex: Keyid.prototype.toHex = function() { return util.hexstrdump(this.bytes);}; In your case: console.log(pgpMessage.packets[0].publicKeyId.toHex() ); El jue., 17 de dic. de 2015 a la(s) 18:03, Andrew escribió: > I