[web-db] implement crypto functions
Summary:
Based on SubtleCrypto. Functions we will need for encryption database.
Depends on D6994
Test Plan:
Encryption:
- Create data ArrayBuffer
- Encrypt
- Decrypt
- Compare
Crypto Key:
- Check if it's properly generated
- Verify that can not be extracted using js
Reviewers: michal, tomek, bartek
Reviewed By: bartek
Subscribers: ashoat, atul
Differential Revision: https://phab.comm.dev/D6995