Skip to content

Instantly share code, notes, and snippets.

View holid019's full-sized avatar

raymond holidjaja holid019

View GitHub Profile
@FrenchBen
FrenchBen / encryptor.go
Created April 4, 2018 21:52
Encrypting/Decrypting a string using golang, from https://stackoverflow.com/a/14944339
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha1"
"crypto/x509"
"encoding/pem"
"flag"
"io/ioutil"
@miguelmota
miguelmota / rsa_util.go
Last active May 10, 2024 20:54
Golang RSA encrypt and decrypt example
package ciphers
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"log"
)