Understanding Cryptography by Christof Paar and Jan Pelzl - Chapter 5 Solutions - Ex5.1

- 1 min

Exercise 5.1

Consider the storage of data in encrypted form in a large database using AES. One record has a size of 16 bytes. Assume that the records are not related to one another. Which mode would be best suited and why?


This solution is verified as correct by the official Solutions for Odd-Numbered Questions manual.

Cipher block chaining (CBC) mode is inappropriate since we want to be able to access individual records at random. For this very simple use case, the Electronic Code Book (ECB) mode is probably the most appropriate, although we will be able to see if any two records are the same. This could potentially be solved by using some kind of salt if this is a problem.

Thomas Busby

Thomas Busby

I write about computing stuff

comments powered by Disqus
rss facebook twitter github youtube mail spotify instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora