Book description
Analyze, encrypt, and uncover intelligence data using Python, the essential tool for all aspiring secret agents
In Detail
Python is an easy-to-learn and extensible programming language that allows secret agents to work with a wide variety of data in a number of ways. It gives beginners a simple way to start programming, but Python's standard library also provides numerous packages that allow Python-using secret agents to easily utilize very sophisticated information processing.
This book will guide new field agent trainees through putting together a Python-based toolset to gather, analyze, and communicate data. It starts by covering the basics and then moves on to sections such as file exchange, image processing, geocoding, simple trigonometry, and more sensitive statistical processing. You will then learn how to use polynomials to encode and decode data in different representations. Furthermore, this book shows you how to add tools to a Python environment, work with images, and parse HTML web pages to extract meaningful data. The idea of adding packages to Python is central to how an agent will leverage these tools for data processing.
What You Will Learn
- Quickly get to grips with using Python to create tools and solve problems
- Manipulate image files and learn how to encode messages into an image using steganography
- Gather a file's hidden secrets, such as EXIF data and ZIP archive contents
- Build applications that access, filter, and analyze live data from the Web
- Design Python modules, libraries, and applications
- Customize your Python environment with specialized packages
- Extract data using HTTP and FTP internetworking protocols
Table of contents
-
Python for Secret Agents
- Table of Contents
- Python for Secret Agents
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Our Espionage Toolkit
-
2. Acquiring Intelligence Data
- Accessing data from the Internet
- Using a REST API in Python
- Organizing collections of data
- Solving problems – currency conversion rates
- Summary
-
3. Encoding Secret Messages with Steganography
- Background briefing – handling file formats
- Using the Pillow library
- Some approaches to steganography
- Detecting and preventing tampering
- Solving problems – encrypting a message
- Summary
-
4. Drops, Hideouts, Meetups, and Lairs
- Background briefing – latitude, longitude, and GPS
- Finding out where we are with geocoding services
- How close? What direction?
- Compressing data to make grid codes
- Decoding a GeoRef code
- Creating natural area codes
-
Solving problems – closest good restaurant
- Creating simple Python objects
- Working with HTML web services – tools
- Working with HTML web services – getting the page
- Working with HTML web services – parsing a table
- Making a simple Python object from columns of data
- Enriching Python objects with geocodes
- Enriching Python objects with health scores
- Combining the pieces and parts
- Working with clean data portals
- Making a simple Python object from a JSON document
- Combining different pieces and parts
- Final steps
- Understanding the data – schema and metadata
- Summary
- 5. A Spymaster's More Sensitive Analyses
- Index
Product information
- Title: Python for Secret Agents
- Author(s):
- Release date: August 2014
- Publisher(s): Packt Publishing
- ISBN: 9781783980420
You might also like
book
Learning Python for Forensics - Second Edition
Design, develop, and deploy innovative forensic solutions using Python Key Features Discover how to develop Python …
book
Real-World Python
With its emphasis on project-based practice, Real-World Python will take you from playing with syntax to …
book
Python Cookbook
The Python Cookbook is a collection of problems, solutions, and practical examples for Python programmers, written …
book
Python for Geeks
Take your Python skills to the next level to develop scalable, real-world applications for local as …