Skip to content

Instantly share code, notes, and snippets.

View dadencukillia's full-sized avatar
👁️
I continue to spoil my eyes

Illia Diadenchuk dadencukillia

👁️
I continue to spoil my eyes
  • Crocoby
  • Ukraine, Rivne
  • 01:32 (UTC +03:00)
  • Instagram im.illia
View GitHub Profile
@dadencukillia
dadencukillia / rsacrypto.go
Last active February 8, 2024 11:19
Golang rsa module with chunk encryption and decryption
// Adapted from: https://gist.github.com/miguelmota/3ea9286bd1d3c2a985b67cac4ba2130a
package rsacrypto
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"fmt"
@miguelmota
miguelmota / rsa_util.go
Last active July 24, 2024 08:34
Golang RSA encrypt and decrypt example
package ciphers
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"log"
)