DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Golang RSA cryptography

4 years ago medium.com
Golang RSA cryptography

Summary: This is a summary of an article originally published by the source. Read the full original article here →

In this post I’m gonna discuss about RSA cryptography functions in golang. First I have defined the RSA key pair related configuration in config.go file.

It contains functions for generate key pair, save keys on file, load keys from file, load keys from string, digitally sign, digital signature verification, encryption, decryption.

Following is the way to execute the functions defined in crypto.go from main.go file. When running it will generates the RSA keys on .keys directory inside project root.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com