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

  • $\begingroup$ Closely related: crypto.stackexchange.com/q/58294 $\endgroup$
    – Patriot
    Commented 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
    Commented 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
    Commented 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$ Commented Jan 29, 2021 at 13:43


Your Answer

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