joonas-fi / joonas.fi

My personal blog
https://joonas.fi/
Apache License 2.0
3 stars 1 forks source link

Applied cryptography #95

Open joonas-fi opened 3 years ago

joonas-fi commented 3 years ago

Confidentiality is often not enough

.. you also probably want non-malleability.

If you've got the ciphertext and you know a record specifies admin permission flag in bit position 13, and you know it's set currently to false, you can just flip the bit whether it's currently set to 1 or 0:

   v-- here
0110001100101001
0100001100101001 <- flipped

Now you've got admin permission just by flipping a bit. The