Skip to content

Instantly share code, notes, and snippets.

View Semooze's full-sized avatar
🏠
Working from home

Semooze

🏠
Working from home
View GitHub Profile
@sohamkamani
sohamkamani / rsa.go
Created April 12, 2020 17:31
Example of RSA encryption, decryption, signing, and verification in Go
package main
import (
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/sha256"
"encoding/base64"
"fmt"
)
@MonsieurNicolas
MonsieurNicolas / gap_detected_guide.md
Created September 14, 2018 18:34
recovery from "gap detected" in Horizon

Symptoms

Horizon will give an error similar to

Gap detected in stellar-core database. Please recreate Horizon DB.

Reasons for this error

mismatched core/Horizon configurations

@miguelmota
miguelmota / rsa_util.go
Last active July 29, 2025 13:12
Golang RSA encrypt and decrypt example
package ciphers
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"log"
)