News for hackers. Stuff that matters.
Re:Password protect a static HTML page by majou on Saturday February 18, 2023 @03:51PM (#34850955)
From what I shallowly researched; GCM's nonce seems limited to 12 bytes by convention only. That nonce reuse is so fatal seems absurd to me.

Would "salting" the key safely tackle the problem?

Put explicitly;

  send <- nonce || salt || ciphertext
  recv -> decrypt(ciphertext, nonce, pbkdf(pass) || salt)
[edit: apply salt outside of the kdf]
Re:Password protect a static HTML page by tptacek on Saturday February 18, 2023 @03:58PM (#34851021)
As I remember it, the balance of the bytes in the AES block are used for the counter. At any rate, the convention is essentially universal.
Re:Password protect a static HTML page by majou on Saturday February 18, 2023 @04:12PM (#34851141)
Sounds above my (current) head.

Here I thought GCM was some modern foolproof/footgunless design.

Re:Password protect a static HTML page by tptacek on Saturday February 18, 2023 @04:34PM (#34851334)
It is sort of infamously footgunny.