Skip to content

Instantly share code, notes, and snippets.

View MohanVijayakumar's full-sized avatar

Vijayakumar MohanVijayakumar

View GitHub Profile
@miguelmota
miguelmota / ip.go
Last active March 31, 2024 22:42
Golang get IP address from web HTTP request handler
package main
import (
"errors"
"log"
"net"
"net/http"
"strings"
)
@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"
)