Have not yet found a nice way of working with the kbpgp API as it is very callback heavy. Probably just my rusty javascript.