Skip to content

Instantly share code, notes, and snippets.

@tscholl2
tscholl2 / aes.go
Last active November 15, 2024 14:18
simple AES encryption/decryption example with PBKDF2 key derivation in Go, Javascript, and Python
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"fmt"
"strings"