Skip to content

Instantly share code, notes, and snippets.

@miguelmota
miguelmota / rsa_util.go
Last active December 26, 2025 10:48
Golang RSA encrypt and decrypt example
package ciphers
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"log"
)