Describe the bug
The block size calculation is not correct because mb_strlen is used instead of strlen
Block ciphers operate with fixed size blocks of bytes not symbols while mb_strlen counts symbols (which can be single-byte or multi-byte). A multi-byte character is counted as 1
Describe the bug The block size calculation is not correct because
mb_strlen
is used instead ofstrlen
Block ciphers operate with fixed size blocks of bytes not symbols while
mb_strlen
counts symbols (which can be single-byte or multi-byte). A multi-byte character is counted as 1Credit @elcreator