Skip to content

Instantly share code, notes, and snippets.

View d3rrick's full-sized avatar

@d3rrick d3rrick

View GitHub Profile
@hothero
hothero / rsa_ecb_pkcs1.go
Created May 6, 2018 13:56
RSA/ECB/PKCS1Padding imnplementation by Golang (can work with JAVA, C#, etc.)
package main
import (
"bytes"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/base64"
"encoding/pem"
"errors"