Skip to content

Instantly share code, notes, and snippets.

View mattkasun's full-sized avatar

Matthew R Kasun mattkasun

View GitHub Profile
@mattkasun
mattkasun / rsa_util.go
Created February 13, 2026 14:32 — forked from miguelmota/rsa_util.go
Golang RSA encrypt and decrypt example
package ciphers
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"log"
)