Skip to content

Instantly share code, notes, and snippets.

View DmytroLisitsyn's full-sized avatar

Dmytro Lisitsyn DmytroLisitsyn

View GitHub Profile
@DeanThompson
DeanThompson / ecb.go
Last active February 12, 2023 05:10
Golang AES ecb mode
package utils
import "crypto/cipher"
type ecb struct {
b cipher.Block
blockSize int
}
func newECB(b cipher.Block) *ecb {