Maybe encryption/decryption could be performed in a separate, isolated process, which stack would never be sent? It seems like Chrome multiprocess architecture could allow for this.
Maybe there could be some new extension permission for "encryption extension" or something, but it's possible that could be abused...
EDIT: Maybe the other guy is right and you didn't mean baking it into the browser. xD