18. Security

Overview

This chapter aims to equip you with the basic skills to protect your code from attacks and vulnerabilities. You will be able to evaluate the workings of major attack vectors, implement crypto libraries for the encryption and decryption of data and implement communication security by using TLS certificates.

By the end of the chapter, you will be equipped to identify common issues with code that could lead to security loopholes, and refactor code to make it more secure.

Introduction

In the previous chapter, we learned about Go tools such as fmt, vet, and race, which are designed to help you with your code development. Let's now look at how to secure your code by looking at examples of common vulnerabilities. We'll also ...

Get The Go Workshop now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.