Answer the question
In order to leave comments, you need to log in
Why can an AES-256 key be less than 32 characters long?
Rhetorical question
$pass = '1234';
$iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc'));
$result = openssl_encrypt('my_string', 'aes-256-cbc', $pass, 0, $iv);
mb_strlen('1234', '8bit')
//4
Answer the question
In order to leave comments, you need to log in
because there is no limit on the length?
Just keep short = don't use encryption at all.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question