Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am m4dfry on github.
  • I am m4dfry (https://keybase.io/m4dfry) on keybase.
  • I have a public key whose fingerprint is 2D71 3A73 D31D C767 19EE 8EF0 E247 E67C 8233 A76F

To claim this, I am signing this object:

@m4dfry
m4dfry / aes-256-gcm.go
Last active April 19, 2017 14:52 — forked from cannium/aes-256-gcm.go
golang aes-256-gcm no-magic
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"fmt"
"io"
)
# encoding: utf-8
require 'cinch'
require 'dotenv'
Dotenv.load
CHANNEL = ENV['CHANNEL']
CHANNEL_PSW = ENV['CHANNEL_PSW']
CHANNEL_AND_PSW = "#{CHANNEL} #{CHANNEL_PSW}"
NETWORK = ENV['NETWORK']