Symmetric encryption · 07 Try it yourself

Symmetric encryption: try it yourself

Exercises on XOR, counting keys and brute force, with solutions.

Exercise 1: XOR by hand

Compute the XOR of 10110011 and 01101010. Then XOR the result with 01101010 again: what do you get?

Exercise 2: how many keys?

A company with 50 employees wants every pair of employees to have a different secret key. How many keys are needed? And if there are 500 employees?

Exercise 3: brute force

A key consists of 6 decimal digits. How many attempts are needed, at most, to find it? And if it consisted of 6 lower-case letters of the English alphabet?

Continue with
08 FAQ

Symmetric encryption: frequently asked questions

Short answers to the most common doubts about symmetric encryption.

↑