3 ms·
Yeah, this. Didn't realize people actually saw this as an issue worthy of worrying about. The Matasano Crypto Challenges I did way back when were in Go and th
by georgemcbay 12y ago
Yeah, this. Didn't realize people actually saw this as an issue worthy of worrying about.
The Matasano Crypto Challenges I did way back when were in Go and the ones involving ECB were just done as for loops over the standard library AES Decrypt/Encrypt methods, something like this:
for i := 0; i < blockCount; i++ {
start := i * blockLength
end := start + blockLength
aes.Decrypt(decryptBuffer, input[start:end])
output = append(output, decryptBuffer)
}
- richm44 12y agoThe fact you can still see the penguin is the least of ECBs problems. If you can do an adaptive chosen plain text attack then you can easily retrieve the key when ECB is used.