Skip to content

Instantly share code, notes, and snippets.

View MArK1done's full-sized avatar

Matey Aryeh MArK1done

View GitHub Profile
@cuixin
cuixin / des.go
Last active October 30, 2023 06:52
des ecb mode in golang
package main
import (
"bytes"
"crypto/des"
"errors"
)
func PKCS5Padding(ciphertext []byte, blockSize int) []byte {
padding := blockSize - len(ciphertext)%blockSize