Client side encryption with the Web Crypto API

Hi,

I’ve made a small example how to use the Web Crypto API to encrypt data client side in anvil, so in the browser with a user provided password.
It is based on a javascript example at GitHub - bradyjoslin/webcrypto-example: Demonstrates a way to encrypt and decrypt data using the Web Crypto API

Looks robust, based on the Web Crypto API but use at your own peril, i’m absolutely no expert and take absolutely no responsibility whatsoever !

Would be good though if we would have an anvil supported one, at the moment there is only server side encryption and would be nice if we could for instance use a yubikey to encrypt and decrypt data client side.