Understanding encryption

We all know about the encryption of messages. Encryption is a process that uses a base message and a key to produce an encoded message through a mathematical algorithm that can only be decoded using the original key. That message can be passed over the wire. The recipient decrypts the message with a key and gets back the original message. We are going to create a microservice that provides both encryption and decryption.

See the plan for the development of our first microservice:

  1. Develop utility functions for encryption/decryption.
  2. Then, integrate it with Go Micro to produce a service.

Go comes with packages for encrypting messages. We need to import encrypting algorithms from those packages and use them. For that, ...

Get Hands-On RESTful Web Services with Go - Second Edition 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.