Skip to content

Instantly share code, notes, and snippets.

@linuxenko
Created October 31, 2016 20:21
Show Gist options
  • Save linuxenko/7fa07d2fcf915c18c5567b2fe7a96e2b to your computer and use it in GitHub Desktop.
Save linuxenko/7fa07d2fcf915c18c5567b2fe7a96e2b to your computer and use it in GitHub Desktop.
var messageKey = function(message) {
return pgp.util.hexstrdump(
pgp.message.readArmored(message)
.packets[0].packets[0].signingKeyId.bytes
).toUpperCase();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment