0
$\begingroup$

I know that ECB is less secure than CBC, but will it be suitable for encrypting a long bit string?

$\endgroup$
4
  • $\begingroup$ Closely related: crypto.stackexchange.com/q/58294 $\endgroup$ – Patriot Jan 29 at 4:50
  • 1
    $\begingroup$ Welcome to Crypto! You may want to be specific about the length of the string. Do you have anything else to add to your question? $\endgroup$ – Patriot Jan 29 at 4:55
  • 1
    $\begingroup$ Do you have continuous bit string like streaming videos or fixed length of bit string as asked by Patriot? $\endgroup$ – SSA Jan 29 at 13:11
  • $\begingroup$ And is there a reason you can't use AES-GCM instead of either? ECB doesn't even provide IND-CPA security, CBC does but lacks IND-CCA & IND-CCA2 secuity (unless you MAC the ciphertext). $\endgroup$ – SAI Peregrinus Jan 29 at 13:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.