Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ecb]

Electronic Code Book (ECB) is a mode of operation for a block cipher, with the characteristic that each possible block of plaintext has a defined corresponding ciphertext value and vice versa.

3
votes
1answer
116 views

Performing a dictionary attack on RSA/ECB with no padding

I have the exponent $e=2^{16}+1$ and modulus $n$ (154 digit number) of an RSA public key along with the ciphertext (64 bytes) encrypted using the same key with RSA/ECB and no padding. I am required ...
2
votes
1answer
287 views

Security of AES after key expansion 4-MB with ECB and CBC

My question is, how does the security depend or change if I encrypt with AES-128 in total 4-MB of Data? With Electronic Code Book Mode and Cipher Block Chaining Mode ? Does an adversary still ...
6
votes
3answers
1k views

Is it possible to find the key for AES ECB if I have a list of plaintext and corresponding ciphertext?

Assume I have a list of plaintext text and its corresponding ciphertext which was created using a specific key with AES in ECB mode. Can I recover that key? If, how big does the list of plaintext ...
2
votes
1answer
93 views

Encrypting AES in ECB mode

I'm fairly new to cryptography and am starting to understand this weird art of Mathematics and theory. One thing I am trying to understand and do is encrypting a plaintext into ciphertext using AES in ...
3
votes
1answer
124 views

Is AES ECB good enough for key spreading?

My apologies if I get my terminology wrong - I am new to this stuff. I am writing a routine (in c) to encrypt plaintext. I am using TinyAES to perform a CBC on the plaintext and sending a (pseudo)...
2
votes
3answers
109 views

Variation on the ECB Penguin problem [closed]

So this is an age-old example of why encrypting images with ECB is a terrible idea, since the underlying pattern of the image remains the same. Referenced from: If you encrypt an image (AES), is it ...
1
vote
1answer
112 views

With DES, is ECB encryption mode equivalent to CBC with null IV for short data blocks?

I got to this by experimentation, but can someone maybe provide an explanation for this?
-1
votes
1answer
92 views

Which block cipher mode to use?

I am working on securing a chat application, and I am not sure about which block cipher mode I should use. I am aware that I should avoid ECB as it's insecure, but what about CBC? I have watched ...
2
votes
2answers
249 views

Security of AES ECB for 128 bit random data

I am using AES ECB mode to encrypt and decrypt 128 random data. I have read on drawbacks on using ECB but it seems that it is feasible to use it for random data. However my concern is that my ...
2
votes
1answer
76 views

Can I work around these padding issue in AES 256 ECB due to Reed solomon encoding?

Disclaimer: I do NOT believe AES-ECB to be at all useful for encryption. That said, due to time and bureaucratic issues that I'm not in control of, I need to use AES-ECB. I get packets of data that ...
8
votes
5answers
2k views

Are there any benefits to using ECB over CBC?

From what I have understood about ECB and CBC, CBC is far better as it doesn't reveal any pattern. There have been several questions here about how ECB is bad: Should I use ECB or CBC encryption mode ...
-2
votes
2answers
316 views

ciphertext stealing and CTR

Why Does CTR mode encryption not use ciphertext stealing?
0
votes
0answers
683 views

Triple DES encryption/decryption in nodejs

In Delphi , we are encrypting the password using TripleDESEncryption algorithm. We use the key as an array of byte [0..15]. Then the input string is converted is first saved to stream and then sends ...
2
votes
0answers
276 views

Why is Byte-at-a-time ECB decryption a vulnerability?

I've been working on the Cryptopals Cryptography challenge problems, and I recently solved one where you recover a plaintext given a encryption oracle. The oracle produces a ciphertext in ECB mode AES....
2
votes
1answer
360 views

Key recovery after AES-ECB encryption of two blocks with some known plaintext/ciphertext

I am analysing a small, bespoke end-to-end encryption service's source code, in particular their user registration process. I am finding some interesting things going on and I am wondering if there's ...
0
votes
2answers
323 views

How to cipher bocks with RSA in ECB mode?

I'm trying to implement a very basic RSA with functions that should generate RSA keys and cipher some text. GenKey function returns a tuple ...
1
vote
1answer
73 views

What if we increase the key length of DES and use ECB Mode, then will we get the different output as ECB mode encrypt with the same key?

I am looking for an answer as if we have DES having 64 bit key and we are encrypting an image it with ECB mode but it doesn't encrypt well. so if we change the key length then will it effect the ...
0
votes
0answers
22 views

AES CBC Transfer vnitialization vector via HTTP [duplicate]

I'm developing application and there will be functionality to encrypt payload with AES CBC by client, and send it on server for storing. But I need to use random IV every time, to make it reliable. ...
3
votes
1answer
377 views

Cryptopals challenge 2.11: Distinguish ECB and CBC encryption

I'm going through the Matasano crypto challenges (also known as cryptopals) and I recently got stuck in the following challenge: http://cryptopals.com/sets/2/challenges/11 The goal of the challenge ...
0
votes
0answers
25 views

Reason for byte error effective ECB decipherment?

What is the logical reason for the effect that a byte error has on the decipherment of an Electronic Code Book encrypted file? I have found sources that only state that a byte error will result in ...
3
votes
1answer
239 views

Is AES in OFB mode with same IV more robust than ECB mode?

I am looking at implementing AES128 bit encryption of a data stream. Since AES128 is a block cipher, which is inherently less robust than a stream cipher, I have considered configuring AES128 as a ...
2
votes
1answer
2k views

AES-ECB known ciphertext/plaintext attack

i'm new to crypto and am working on a little exercise to understand the weakness of ECB mode encryption. Here is the scenario. I have the plain text ...
2
votes
1answer
937 views

Encrypting Keys in a Firmware-Update

I have a bootloader on a small device (Cortex-M0/M3). I want to publish encrypted firmware updates, that can be installed on the device, using the bootloader. The whole point of the encryption is to ...
2
votes
1answer
428 views

MySQL/MariaDB AES_ENCRYPT() - ECB mode, IV, Padding Oracle Attack Question

Multipart question all related to AES encryption with MariaDB. Strangely enough, it looks like even today MariaDB only has AES with ECB mode. MySQL allows CBC and more I believe. Anyway I'm stuck ...
0
votes
1answer
523 views

Manipulate encrypted file: AES / ECB / PKCS5Padding

As part of a competition I want to manipulate (or decrypt) a file. I know, that the file contains gzip compressed text and is encrypted with AES / ECB / PKCS5. I also have the plain text and the ...
0
votes
1answer
127 views

Is CBC still better than ECB if the key and a large part of the texts are random?

I am doing protection for my software, which involves storing a part of the crucial algorithm inside a smart-card based dongle. I will supply the input to the dongle, and I will expect the output of ...
-1
votes
1answer
167 views

encode plaintext with ecb

I have a plaintext "DENKMAL" which I have to encode in the ECB mode with the block size = 1 character (whereby the assignment $A\leftrightarrow 0, B \leftrightarrow 1$, etc.) Now I should find the ...
1
vote
1answer
402 views

Why are ECB CBC and CFB parallelizable?

I guess I do not understand the word 'parallelizable'. Why are ECB CBC and CFB parallelizable? It would be nice if someone could explain it in a short way.
3
votes
0answers
105 views

ECB attack to bank transfer

I have a problem with a task from my university. We have two banks and these banks are sending data in ECB mode. Plaintext and ciphertext look like this: Plaintext: ...
4
votes
2answers
524 views

ECB vs CBC for encrypting high entropy data

I have a master AES key and I need to encrypt other AES keys with this key. Is ECB safe to encrypt highly random data (a key)? What benefit would I get if I use CBC instead? In particular, are the ...
1
vote
0answers
498 views

How does GnuPG compress a file and how to deal with it? [closed]

When encrypting a file symmetrically with gpg -c file.txt, when and how does it compress the file? I was working on a cryptopals challenge and wanted to test out ...
7
votes
2answers
1k views

Implement AES-CTR on top of AES-ECB

I using a microcontroller which only support AES-ECB encryption i.e. no decryption-mode, CBC, GCM or similar modes. However, I'm wondering if it's possible to implement AES-CTR or similar on top of ...
1
vote
1answer
369 views

Attack mode for DES + ECB

Given that the plain text(P) and the ciphertext is known, and there's a random string(8 bytes)(S) concatenated to the plain text(P || S), how to go about figuring out the random string. Querying of ...
2
votes
1answer
168 views

64 bits cipher and birthday boundaries in ECB

I am using a 64 bits symmetric ciphers (blowfish), to encrypt a plain block using ECB. The plaintext is always 64 bits long, but due to some limitations I have to use the same key (448 bits long) ...
5
votes
1answer
703 views

AES-256-ECB to encrypt VOIP audio-stream?

I need to encrypt a live audio-stream that is being sent over the internet. The details are: The stream contains spoken language (VOIP) Only the raw stream is transmitted (no meta-data or container) ...
2
votes
2answers
152 views

Can you tell if this ECB mode mitigation idea is “OK”?

The context: you have to encrypt passwords (reversible, for accessing external services), and also some customer data for privacy reasons, and you need to use AES-ECB mode... The idea to mitigate the ...
8
votes
2answers
5k views

Chosen Plaintext attack on AES in ECB mode

I am familiar with the following method for an chosen-plaintext injection attack on ECB ciphers, where I am allowed to append a block of bytes to the packet being encrypted: I inject a string with ...
1
vote
4answers
309 views

Using a block cipher with timestamp instead of counter

I have a system where machine A sends updates to machine B. The updates are sent over the internet, where each update is a single UDP datagram. Machine A sends a local timestamp in each update (we can ...
0
votes
1answer
172 views

Using rainbow tables to find encryption keys of block ciphers?

Hi I have a question in mind. Let's consider a block cipher whose key length is 36 bits. The bit-length of the plaintext is 256 bits, but there are only 16 possible plaintexts $m_0, m_1, . . . , ...
-1
votes
2answers
2k views

Is it possible to break AES-128 ECB if you are given a ciphertext and a small portion of the key?

If you are given the ciphertext and the first half bytes (8 bytes) of the encryption key (key is 16 bytes in total), can you use this to break AES-128 ECB encryption and determine the last 8 bytes of ...
4
votes
0answers
453 views

How can I find or reverse engineer the whitening in an AES algorithm?

I am working with this black box cryptography scheme. I know the plain text, cipher text, and everything else except how they whiten the data (or key?). Everything is 128 bit, 16 bytes. I have two ...
6
votes
2answers
251 views

Is it feasable to combine ECB and CTR block modes of operation?

Both ECB and CTR block modes have advantages over other block modes. They both support parallel encryption and decryption and random reads/writes. Yet both have major disadvantages: (I'm assuming AES ...
0
votes
0answers
96 views

using bitmaps to find patterns

To elaborate, the DES ECB mode outputs the same ciphertext for same plaintext for the same key. I did use 3 different keys and encrypt the same plaintext and got the same ciphertext as an output. ...
3
votes
0answers
68 views

AES ECB one more experiment

I checked the most common AES modes and I think I got the goal of them: avoid same cyper text for same plain text. However all modes except ECB have the weakness that lost part of the message stream ...
0
votes
1answer
397 views

How can I break this block-cipher?

So we've got to do this assignment for our study, but we can't figure out what to do, can someone help? Assume that Alice and Bob want to communicate via encrypted email. To this end, they first meet ...
4
votes
2answers
817 views

Key recovery when AES ECB is used for short but repeated messages

My question is based on the specification of the protocol LoRaWAN and especially on the part 6.2.5 Join-accept message. It is said that the join-accept message is encrypted using AES ECB. This is (...
0
votes
0answers
381 views

Message length for aes 256 in ctr, ecb and cbc mode

I want to encrypt a message that have values between 0 and 50. So message have maxim 1 byte. Is possible to encrypt with aes256 in ctr, ecb and cbc mode, messages from 1 byte, not necessary 32 bytes? ...
1
vote
1answer
647 views

How would an attacker perform an exhaustive key search on a block cipher using ECB mode?

Do you always assume from Kerchoff's principle, that the attacker has access to everything but the decryption key? That is, am I to assume that to perform an exhaustive key search, the attacker has a ...
1
vote
0answers
30 views

What is the benefit of artificially padding messages? [duplicate]

For ECB, CBC, and CFB, padding is required when the plaintext does not fill out a complete multiple of the block size. However, I have heard that is good practice to pad all messages, even if the ...
0
votes
1answer
272 views

What about using AES-ECB with random IV?

Let P1P2...Pn be n blocks plaintext, and M0 be a random IV. Then a n+1 blocks message M0M1...Mn can be constructed by setting Mi+1 = Mi xor Pi+1. Finally, we use AES-ECB to encrypt this message. Is it ...