Book Image

Python for Secret Agents

By : Steven F. Lott, Steven F. Lott
Book Image

Python for Secret Agents

By: Steven F. Lott, Steven F. Lott

Overview of this book

Table of Contents (12 chapters)
Python for Secret Agents
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we learned how to work on a computer's filesystem and common file formats. We looked in depth at image files. We also saw how Pillow allows us to apply operations such as cropping, filtering, and enhancing to an image.

We covered Python bit-fiddling operators such as &, |, <<, and >>. These operators work on the individual bits of an integer value. Something like bin(0b0100 & 0b1100) will show how the answer is based on doing an AND operation on each individual bit of the number.

We also looked at how we can apply steganographic techniques to conceal a message in an image file. This involved both byte and bit manipulation in Python.

In the next chapter, we'll look at incorporating geolocation information with our other information gathering. We know that pictures can be tied to locations, so geocoding and reverse geocoding are essential. We'll also look at ways to read more complex online datasets and combine multiple web services into a composite...