Working on decryption in the browser.

Switched encryption to a different type.