Book Image

Security with Go

By : John Daniel Leon
Book Image

Security with Go

By: John Daniel Leon

Overview of this book

Go is becoming more and more popular as a language for security experts. Its wide use in server and cloud environments, its speed and ease of use, and its evident capabilities for data analysis, have made it a prime choice for developers who need to think about security. Security with Go is the first Golang security book, and it is useful for both blue team and red team applications. With this book, you will learn how to write secure software, monitor your systems, secure your data, attack systems, and extract information. Defensive topics include cryptography, forensics, packet capturing, and building secure web applications. Offensive topics include brute force, port scanning, packet injection, web scraping, social engineering, and post exploitation techniques.
Table of Contents (15 chapters)

Compression

The Go standard library also supports compression, which is different than archiving. Often, archiving and compressing are combined to package a large number of files in to a single compact file. The most common format is probably the .tar.gz file, which is a gzipped tar ball. Do not confuse zip and gzip as they are two different things.

The Go standard library has support for multiple compression algorithms:

  • bzip2: bzip2 format
  • flate: DEFLATE (RFC 1951)
  • gzip: gzip format (RFC 1952)
  • lzw: Lempel-Ziv-Welch format from A Technique for High-Performance Data Compression, Computer, 17(6) (June 1984), pp 8-19
  • zlib: zlib format (RFC 1950)

Read more about each package at https://golang.org/pkg/compress/. These examples use gzip compression, but it should be easy to interchange any of the above packages.

...