Encryption is based on two main factors:
prime numbers
random numbers
On Linux the random numbers are generated by the pseudo random number generator.
It generates randomness from hardware interrupts e.g. by keyboard, mouse, disk or network I/O.
The main difference between /dev/random and...