Skip to content

Instantly share code, notes, and snippets.

View koloo91's full-sized avatar

koloo91 koloo91

  • Berlin, Germany
View GitHub Profile
@koloo91
koloo91 / ipcalc.go
Created January 21, 2020 10:53 — forked from kotakanbe/ipcalc.go
get all IP address from CIDR in golang
package main
import (
"net"
"os/exec"
"github.com/k0kubun/pp"
)
func Hosts(cidr string) ([]string, error) {
@koloo91
koloo91 / rsa_util.go
Last active June 28, 2019 10:02 — forked from miguelmota/rsa_util.go
Golang RSA encrypt and decrypt example
package main
import (
rand2 "crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"fmt"
"log"