The code in the “Update” section of the question will work without any changes. You just need to make sure to remove the “base64:” prefix in the encryption key provided. Once that is removed, it will work as expected.
I disabled all installed extensions in Chrome – works for me. I have now clear console without errors.