News for hackers. Stuff that matters.
Re:Password protect a static HTML page by tialaramex on Saturday February 18, 2023 @02:14PM (#34850055)
> so you can't tamper with it.

... if the API provided is correctly designed, and either the language made it practical to design the API in a misuse-resistant way /or/ the programmer was actually careful and used it properly.

We both know it's way more likely the problem in your actual system is "Oops, we use the bogus plaintext here despite the validation error" than "Dastardly enemy cryptographers have made a breakthrough in cryptanalysis to attack our product".

Re:Password protect a static HTML page by tptacek on Saturday February 18, 2023 @02:15PM (#34850067)
I'm not thinking very hard about it; there is just never a reason to use unauthenticated encryption modes. When I wrote that comment, I hadn't even looked to see if they'd manually authenticated their ciphertext (spoiler alert: you can guess).
Re:Password protect a static HTML page by ThePhysicist on Saturday February 18, 2023 @04:22PM (#34851235)
SubtleCrypto (Web Cryptography API) will simply throw an exception if the authentication fails for AES-GCM, so there's no way to even get at the bogus plaintext.