Abstracting OpenPGP.js away into it's own plugin