Sign then Encrypt

Just as a heads up this is wacky as shit because of some weird merging and rebasing…I'm still looking at it but if you see anything odd please let me know.
Because you haven't pushed it and I need it. Push it and I'll rebase. The problem is I need to test in dev mode because the encryption change breaks production mode. I need this to test locally. I tried to replicate it by copy paste so rebase would be easier.