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, 2021 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, 2021 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, 2021 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$ Jan 29, 2021 at 13:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.