From the course: Symmetric Cryptography Essential Training

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Boolean operations

Boolean operations

- [Instructor] As we've discussed at length now, all operations in modern cryptography operate on binary data. I'd like to talk to you now about some of these operations that computers do on the binary level, 'cause they're used fairly often behind the scenes in cryptographic algorithms. Computers use them to combine zeros and ones, but we use some of these expressions in a similar way to combine things in English. For example, in English we might say, at the store, please buy milk and a dozen eggs. The meaning there is that you need both the milk and the eggs together. Or we might say, I would like either coffee or tea. And that means that it's a choice. It's a decision between either coffee or tea. We could have one or the other, or maybe both. This is the AND operator. For the AND operator, we need both conditions to be true. Often we think about the numbers zero representing false and one representing true. And you see, when we have X and Y, the only time where the and operation…

Contents