From the course: Symmetric Cryptography Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Boolean logical operations

Boolean logical operations

From the course: Symmetric Cryptography Essential Training

Start my 1-month free trial

Boolean logical operations

- [Instructor] As we've discussed, all operations in modern cryptography operate on binary data. I'd like to talk to you about some of these operations because they're used fairly often behind the scenes in cryptographic algorithms. Computers use them to combine zeros and ones, but we use them 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 suggestion 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. For the AND Operation, we need both conditions to be true. So, again, zero represents false, one represents true. And you see, when we have x and y, the only time where the AND Operation is true is when both of the conditions, both of the inputs, are true. The OR Operation is for when we need either condition to be true. So in this case you see, whenever x is…

Contents