Skip to content

Instantly share code, notes, and snippets.

View MrGossett's full-sized avatar

Tim Gossett MrGossett

  • SyBridge Digital Solutions
  • Atlanta, GA
View GitHub Profile
package main
import (
"bytes"
"crypto/rand"
"encoding/hex"
"io"
"os"
)
@MrGossett
MrGossett / program.go
Created May 11, 2022 19:54
A simple AEAD implementation
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/hex"
"fmt"
"io"
"os"
@MrGossett
MrGossett / patch.go
Last active May 11, 2022 15:57
Patching a binary in Go
package main
import (
"bytes"
"os"
)
func main() {
// find the file "program" and read it all into memory as a byte slice
bs, err := os.ReadFile("program")