Chapter 11 – Encrypting and Decrypting Files 153
ENCRYPTING AND DECRYPTING
FILES
Topics Covered In This Chapter:
Reading and writing files
The open() function
The read() file object method
The close() file object method
The write() file object method
The os.path.exists() function
The startswith() string method
The title() string method
The time module and time.time() function
“Why do security police grab people and torture them? To get their
information. If you build an information management system that
concentrates information from dozens of people, you’ve made that
dozens of times more attractive. You’ve focused the repressive regime’s
attention on the hard disk. And hard disks put up no resistance to torture.
You need to give the hard disk a way to resist. That’s cryptography.”