After the release of the long awaited vetKeys feature, I started implementing it into my encrypted file storage application. But I ran into a problem that I would like to solve.
Since the files are encrypted, we must get the entire file to the browser and then perform the decrypt operation and give the decrypted data to the user as a file. But I encountered an error decrypting large files (800mb) and I understand this is a browser memory limitation.
Raised when the operation failed for an operation-specific reason (e.g. algorithm parameters of invalid sizes, or there was an error decrypting the ciphertext).
I use the AES-GCM symmetric key and therefore have to transfer the entire file and cannot process it in chunks. Should I use CTR or CBC algorithms to get around this limitation? I’ve read that CTR and CBC are less safe and that’s why it’s recommended to use GCM.