do pgp crypto and keygen in worker