Skip to content

Instantly share code, notes, and snippets.

View jlewi's full-sized avatar

Jeremy Lewi jlewi

View GitHub Profile
@dopey
dopey / main.go
Last active June 26, 2024 13:38 — forked from denisbrodbeck/main.go
How to generate secure random strings in golang with crypto/rand.
package main
import (
"crypto/rand"
"encoding/base64"
"fmt"
"io"
"math/big"
)