Source: medium.com

Golang RSA cryptography

Category: android, ios, gitlab

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.

Related Articles