Skip to content

Instantly share code, notes, and snippets.

View nakabonne's full-sized avatar
👋

Ryo Nakao nakabonne

👋
View GitHub Profile
@nakabonne
nakabonne / ecr_client.go
Created December 9, 2020 09:47
An ECR client to determine the latest tag of the given repository
package main
import (
"context"
"fmt"
"log"
"path"
"sort"
"github.com/aws/aws-sdk-go/aws"
@nakabonne
nakabonne / aes256-gcm.go
Created December 19, 2020 06:19
Example of AES-256 GCM encryption with a key derived from password
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"fmt"
"log"

Keybase proof

I hereby claim:

  • I am nakabonne on github.
  • I am nakabonne (https://keybase.io/nakabonne) on keybase.
  • I have a public key whose fingerprint is CCF2 8332 E6CB 777E C33A 54EF 4192 AC2E EF55 8144

To claim this, I am signing this object:

package main
import (
"bytes"
"encoding/binary"
"testing"
)
type Data struct {
ID uint32