Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

What is the advantages of each encryption mode to other encryption mode..

for example what are advantages of CBC to PCBC, CBC to CFB

just like that.

so that I can filter what would be the best encryption mode.

share|improve this question

closed as not a real question by Ninefingers Apr 26 '12 at 15:08

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

4  
It depends on your requirements, threat model, and so on. For example, do you need to be able to decrypt arbitrary byte ranges or just beginning to end? Do you need to encrypt different data with the same key? Do you need the same data to encrypt to different things so an attacker can't compare encrypted output? Do you need to be able to detect tampering or is it okay if corrupted input gives corrupted output? Do you need to restrict what information an attacker could get from multiple encrypted versions of the same data? Do you need to be able to modify the encrypted data? And so on. –  David Schwartz Apr 26 '12 at 8:27
    
I want to encrypt a arbitrary bytes ranges, The file can encrypt with different key.. –  goldroger Apr 26 '12 at 9:24
    
@JohnPaulParreño: Please update your question (it has an edit link) with details according to David's comment - this will help us answer your question. (Also, your question title is a bit generic, but this can be fixed when we know what exactly you want.) –  Paŭlo Ebermann Apr 26 '12 at 11:53
    
@PaŭloEbermann - I changed already my title, is that okay already? –  goldroger Apr 26 '12 at 13:55
1  
I'm closing this for now as it remains way too broad - we can't just list some advantages based on requirements that might or might not suit your case, because that's just not answerable. Rather than "what are some advantages", explain the situation you are likely to encounter - for example this question asks about maximum key sizes for CBC. Again, David's comments are excellent - you need to be specific. When you're done, flag for re-opening and we'll get the answers coming in again. –  Ninefingers Apr 26 '12 at 15:11
show 2 more comments

1 Answer

Honestly, the only sensible answer to this question is: If you need a secure solution to a real-world problem, either hire a competent expert to design it or pick an existing solution designed for your specific requirements. Shortcuts will get you into trouble.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.