How does encryption work?
This is more like an advanced topic for those who are beginning to learn programming, but I think it is beneficial for everybody to have some understanding about it. Encryption is, as far as I know, regarded as one of the keys of system security. But it can also be used to lock down your system, like what has been done by ransomware such as wannacry. So can anybody please explain the mechanism of encryption in brief but easily understood manner?