mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 12:04:21 +01:00
This patch brings a bunch of quality of life improvements to encryption: 1. Previously, we just let any string to be used as a key. I have updated the `PRAGMA hexkey=''` to get the key in hex. I have also renamed from `key`, because that will be used to get passphrase 2. Added `PRAGMA cipher` so that now users can select which cipher they want to use (for now, either `aegis256` or `aes256gcm`) 3. We now set the encryption context when both cipher and key are set I also updated tests to reflect this. Reviewed-by: Preston Thorpe <preston@turso.tech> Closes #2779