Skip to content

Instantly share code, notes, and snippets.

View MohanVijayakumar's full-sized avatar

Vijayakumar MohanVijayakumar

View GitHub Profile
@ustropo
ustropo / rsa.go
Created November 7, 2020 16:40
Example using RSA to encrypt, decrypt, sign and verify.
package main
import (
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/sha256"
"fmt"
)
@miguelmota
miguelmota / ip.go
Last active October 31, 2024 19:22
Golang get IP address from web HTTP request handler
package main
import (
"errors"
"log"
"net"
"net/http"
"strings"
)