Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COThanks, not sharing the IV really was the full problem. But I've got a small bonus question: Why am I able to decode everything after the first ~30 bytes correctly? The key is only 32 byte long since I can't use any longer key (PHP will throw an error); is a part of my message unprotected from decryption? I think I don't need mhash since I only need encryption to protect (critical) temporary data in a database? (deleted after 10 minutes; only read access matters, manipulations without read access don't)
      singulars
    2. COThat's because of the way CFB works - the IV is only needed to decrypt the first block. To decrypt the second block, the ciphertext of the first block is what's needed (and you were transmitting that, and all subsequent blocks, fine). This is why an HMAC is a good idea - the attacker can flip *any* bits of your message at will, undetectably - so if he can guess what you were saying (eg, "admin=0"), he can make you say whatever he wants (eg, "admin=1").
      singulars
    3. COOkay, so the IV is only important to protect the first block (should be 16 bytes for Rijndael 256?) so one can safely store a hash there by adding the IV as some kind of salt to check for manipulations? But if I don't need that extra protection I would be fine to use an empty IV as well (or no IV at all if that's possible) and would still not sacrifice any security of all blocks except the first one because everything after the first block will always be decryptable with whatever random IV I choose?
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload