In my Java application, I used AES/GCM/NoPadding algorithm for encryption, however it throws an exception when I try to encrypt files bigger than ~68GB. From what I read, it is limit of data that can be encrypted using GCM.
I know that there is a possibility to split bigger files and then merge them, but this seems like a complicated solution. Is there an algorithm that is as safe as GCM, but handles massive files?
I tested CBC, and this works with bigger files, however I read that it is ~40yo, and not as safe, due to lack of authorization. Does it really cause safety problems? Are there any alternatives?
Edit: Thank you all. As a result of Sonar marking CBC as unsafe and orders from senior architect, I implemented file split/merge with GCM in application.