Questions tagged [rc4]

RC4 is a fast and simple stream cipher used correctly in SSL and incorrectly in WEP.

Filter by
Sorted by
Tagged with
2 votes
1 answer
93 views

RC4 Klein (or other) attack susceptibility question

What issues do yall see with the following in terms of key recovery and related key attacks: RC4 used to "sign" a nonce: 3 byte nonce concatenated with 16 byte long term key > RC4 ...
HANGOBA's user avatar
  • 21
2 votes
0 answers
51 views

1st round attack on rc4

I'm trying to implement the 1st round attack on RC4 stream cipher according to Attacks on the RC4 stream cipher. For now I am interested in section 4.2 Attack on other key bytes. It works really fine ...
SarkoxedaF's user avatar
0 votes
1 answer
94 views

Secure symmetric cryptography for low memory/CPU systems

I am looking for symmetric cryptography algorithms that can be implemented on chips with very few resources (about 256K RAM and 16MHz CPU). An algorithm that works perfectly in this environment is RC4,...
Begoña Garcia's user avatar
0 votes
1 answer
179 views

RC4-40 with IV (32-bit) setup

I have taken this implementation of RC4 written in C. I have 40-bit key and 32-bit IV (both in hex). So, questions is about KSA step: How should I transform hex key value into the char array? Just ...
ALEX's user avatar
  • 1
0 votes
2 answers
856 views

How can I decrypt an RC4 encrypted text when knowing the first 8 characters of the plain text secret?

I'm having difficulty decrypting a secret message as a part of a CTF and I was wondering how could I decrypt an encrypted text that has been encrypted with pycrypto RC4 and when the first 8 characters ...
DireHacker's user avatar
0 votes
1 answer
145 views

RC4: Known plaintext key, unknown key derivation

I am working with an older piece of software that generates encrypted backups that I'd like to decrypt. I have a plaintext key, a few examples of encrypted data and I'm pretty sure the data is ASCII, ...
slipheed's user avatar
  • 427
0 votes
1 answer
336 views

Why are des-cbc-hmac and rc4-hmac-exp considered weak in kerberos?

Kerberos uses des-cbc-hmac (mac and encrypt) and rc4-hmac-exp based on md5 (mac and encrypt I think) in their encryptions. Those encryptions are considered as weak and should not be used. Why are they ...
adi's user avatar
  • 175
0 votes
1 answer
689 views

What authenticated encryption do kerberos use in windows?

I have learned about the kerberos protocol and seen that the windows version uses a couple of authenticated encryption schemas (like rc4-hmac-md5). What type of authenticated encryption is it? Is it a:...
adi's user avatar
  • 175
1 vote
1 answer
104 views

I need a simple cryptographic code to put on a t-shirt

I never worked with cryptography but I wanted to add an easter egg on the design I'm making for a t-shirt. I need it to have a key that will be embroided on the front design wich is: 15122017 that ...
artemocdr's user avatar
2 votes
1 answer
236 views

MS CryptoAPI RC4-1024 vs AES-128?

I'm trying to figure out MS CryptoAPI to generate a symmetric key on one computer then an RSA key on another, send over that public key to use to export the symmetric key to that other computer. I'm ...
user3161924's user avatar
0 votes
0 answers
154 views

Recreate RC4 Stream cipher

I'm trying to learn how to go about cracking RC4 ciphers (nothing illegal, its an old, i.e., not active challenge for a job application, so no cheating). I have nine md5 hashes with their own ciphers. ...
Richard's user avatar
0 votes
2 answers
2k views

How to generate the Keystream from IV+Key in RC4

So I understand that a keystream is generating from a key and is the length of the message you want to send, so that you can properly XOR every bit. But I'm having trouble finding and understanding ...
Joshua Segal's user avatar
1 vote
1 answer
56 views

If two hosts are using a transparent IP level authentication and encryption, is their communication subject to both MITM or replay attacks?

Encryption process for any outgoing packet to the specified "remote IP": -original payload P is encrypted (the bytes after the IP header) using RC4 with the preestablished key ...
Koolz's user avatar
  • 13
5 votes
1 answer
234 views

Use large key size for RC4 to avoid RC4 bias

I saw a question on StackOverflow where RC4 was initialized by a 1024 bit key (with 2048 the maximum key size, if I'm not mistaken). Will such a large key size possibly solve any of the bias of the ...
Maarten Bodewes's user avatar
  • 91.7k
2 votes
2 answers
153 views

Books about stream ciphers

I am new to ciphers and for my assignment i have to implement a stream cipher algorithm without libraries (on my own). So my question is: Does anyone know about any GOOD books which have examples and ...
znoris007's user avatar
4 votes
2 answers
661 views

Are there ready-to-use software that can try many decryption techniques on a ciphertext, with no information?

Let's say I receive a 1 MB encrypted file, but I get no information about the encryption method, and no password. The only thing I can guess is that the person probably used a weak encryption method ...
Basj's user avatar
  • 543
2 votes
0 answers
195 views

Extracting RC4 and 3DES keys from system memory

I have read papers [1], [2] that have presented techniques on extracting symmetric encryption keys from memory during the process of encryption. There are tools [3] that can extract AES keys from ...
learnerX's user avatar
  • 687
1 vote
1 answer
89 views

Attacks against RC4 when index $i$ is unknown

RC4 uses two 8-bit indices. One, $j$, is key-dependent and secret, and the other, $i$, increments by one for each byte output. The $i$ index is typically considered to be public, but what if the RC4 ...
forest's user avatar
  • 15.1k
7 votes
0 answers
186 views

Does the bias in RC4 drop asymptotically further in the keystream?

It's well-known that the RC4 keystream has significant biases that become less prominent later in the keystream. The most severe bias is in the second byte, which has a 128-1 bias towards zero. Other ...
forest's user avatar
  • 15.1k
1 vote
0 answers
85 views

Randomness Test of Permuted Sequence

As we can generate a permuted sequence using KEY in KSA (Key Scheduling Algo) of RC4. Is there any way to check the randomness of the permuted sequence? Let say I created 100 different permuted ...
Zeeshan Abbas's user avatar
6 votes
0 answers
130 views

What is the "brand X" cipher mentioned in the Usenet thread about RC4?

In the original Usenet thread about RC4 when it was finally reverse engineered, a user by the name of Michael Johnson mentioned that the RC4 algorithm looked surprisingly like another proprietary ...
forest's user avatar
  • 15.1k
1 vote
1 answer
13k views

Difference between RC2, RC4, RC5 and RC6

Can anyone point out the core differences between these ciphers?
arif's user avatar
  • 137
1 vote
0 answers
167 views

Understanding a security error with RC4 using the same key to encrypt on the client/server sides

This apparently was a bug with WhatsApp a while ago. I am endeavoring to recreate it and understand it. The bug had to do with the fact that the same key was used to encrypt plaintext on both the ...
R. Rengold's user avatar
2 votes
2 answers
2k views

Arbitrary key size in RC4

Is it possible using RC4 that for e.g. a 17-bit long plaintext i can get a 17-bit long ciphertext? From my understanding, for this example i need a 17-bit long key to do the XOR operation for ...
Don's user avatar
  • 123
9 votes
2 answers
2k views

Is RC4 secure with a single-use 32-byte random key prefix and 3072 prefix bytes discarded?

Are there any known attacks against RC4 if used with a single-use, random-generated 32-byte key, and 3072 random bytes prepended to the plaintext? Are there any reasons why we should consider such a ...
pts's user avatar
  • 223
-2 votes
1 answer
602 views

Why does Blowfish and RC4 (Arc4) make same encrypted strings [closed]

I made a program on android. I used a password key of "PBKDF2WithHmacSHA1" for both of them as a key. The program i made was using Android java Cipher library. When I encrypt and decrypt with blowfish ...
alikhtag's user avatar
  • 101
2 votes
1 answer
635 views

RC4 - Key scheduling Algorithm

I'm trying to understand the KSA algorithm of RC4 which apparently scrambles the array which will later be used by the PRGA to generate the keystream. My question is, does the seed used by the KSA ...
Trey's user avatar
  • 189
1 vote
0 answers
2k views

RC4: Find the complete plain text of a ciphertext when we know part of the plaintext

I need to decrypt an encrypted file with RC4 to answer to a Internet challenge. The file in question is a dump of a Teensy ROM and it is completely encrypted. Luckily, it looks like it's a standard ...
Mekhalleh's user avatar
3 votes
1 answer
11k views

What are the steps for decryption of RC4?

I've seen a lot of algorithms posted everywhere about how to encrypt using RC4. For example, this wiki article https://en.wikipedia.org/wiki/RC4 explains the KSA and PRGA steps. After it generates ...
user2072374's user avatar
1 vote
1 answer
251 views

Is RC4 cipher just xoring plaintext with a random sequence seeded by key?

After reading about RC4, it seems that it's nothing else than: the plaintext stream is just XOR'ed with a pseudo-random sequence that is initialized/seeded with the key Is there something else in ...
Basj's user avatar
  • 543
1 vote
1 answer
260 views

How should k2 be produced in the RC4A stream cipher (A modification of RC4)?

RC4A is a slight modification of the simple RC4 stream cipher designed to strengthen it against a number of attacks. Here's that paper. However in the paper, the second key ...
bryc's user avatar
  • 292
3 votes
1 answer
253 views

Is it possible for an element to be swapped with itself in RC4?

Given the design of RC4, is it possible or impossible for the values $i$ and $j$ to be equal to each other when $S[i]$ and $S[j]$ are swapped?
Melab's user avatar
  • 3,635
2 votes
2 answers
887 views

Are Two Ciphers Better Than One? i.e. RC4 and AES

OK It's cringe time (or hopefully not) I know this is probably a variation of an old and dragged out question or so you may think but let me ask away and hopefully get some insight. Google a while ...
Iam Nick's user avatar
  • 540
0 votes
1 answer
152 views

Incremental RC4 algorithm?

I am currently analysing a client-server application which apparently uses RC4. I've got the secret key and nonce and I was very surprised about the approach they encrypted the packets. Since I am no ...
kentor's user avatar
  • 103
3 votes
0 answers
116 views

Can a stream cipher with a big S-box create ASIC-resistance?

For a proof of work system a hash algorithm generates one pseudorandom index each round, in the same manner as RC4 and Spritz do. And it uses a bigger S-box, e.g. 2^20 numbers. The actual hash would ...
user49963's user avatar
2 votes
3 answers
2k views

Using a PRNG for a stream cipher instead of a dedicated algorithm

I am aware, that it is possible to build a stream cipher using some deterministic PRNG (like HASH_DRBG or CTR_DRBG) with good key material as the seed. What are the advantages of using a purpose ...
mat's user avatar
  • 2,508
0 votes
1 answer
20k views

RC4, finding key if we know plain text and ciphertext [duplicate]

Having plain text A , and cipher text B. Can we somehow retrieve key , when we want to decrypt text C which was also crypted with the same key?
trolkura's user avatar
  • 103
0 votes
1 answer
194 views

Is the RC4 KSA the same as an extractor?

I am studying the RC4 stream cipher, particularly when it used to be applied in the TLS/SSL protocol. Is it safe to say the KSA acts like an extractor taking in the shared secret key, k (between ...
guy's user avatar
  • 229
1 vote
0 answers
122 views

WEP: Why is the challenge string randomized?

In WEP, the 128-bit challenge string generated by an access point would allow for approximately 340 undecillion unique strings. Would it be problematic were a string to be reused? I suppose with $2^{...
tpm900's user avatar
  • 203
3 votes
2 answers
199 views

Stream Ciphers -- Need clarification on their benefits in practice

Compared to a block cipher which encrypts 16 bytes at a time, stream ciphers can encrypt a byte at a time. I am curious about which applications would immensely benefit from the ability to encrypt a ...
Minaj's user avatar
  • 1,080
2 votes
1 answer
979 views

Does RC4 continue to be used anywhere?

RC4 in TLS is now broken. But the breaking seems to have a lot to do with how web transactions work in general. Is there any application outside of the web where RC4 is still used? I know that WEP is ...
Minaj's user avatar
  • 1,080
2 votes
1 answer
609 views

When is AES chosen instead of a stream Cipher (e.g., RC4) during an SSL connection?

During an SSL handshake, the browser sends a list of cipher suites to the server, from which the server selects one option. For data encryption, two of the several possibilities for the ciphers in ...
Minaj's user avatar
  • 1,080
1 vote
0 answers
75 views

Mitigating weaknesses in RC4 [duplicate]

I've been researching RC4 and implementing it, and I was wondering, from the perspective of a cryptographer (a real one, not a fake one like me), what could be added to the RC4 algorithm to improve on ...
Austin Wile's user avatar
0 votes
0 answers
236 views

RC4 using a key without nonce's or IV's [duplicate]

I'm researching RC4 and I am trying to recreate a condition where RC4 is crackable. However I can't quite find the article/resource I need to find the weakness for an implementation like this (python):...
Don's user avatar
  • 101
2 votes
1 answer
1k views

How do attacks on WEP work?

There is an abundance of tools and tutorials on how to break WEP encryption. However, I fail to find a nice resource that gives a clear break-down of why the attacks are possible. For example, I know ...
Minaj's user avatar
  • 1,080
2 votes
1 answer
581 views

Two or more initialization vectors with the same key

I'm studying about WEP and I'm in doubt. It seems that because it uses a initialization vector of 24 bits, which is relatively short, is easy to determine which key was used to encrypt the data. But ...
codin's user avatar
  • 123
7 votes
1 answer
411 views

Does "double RC4" exhibit the same weaknesses as standard RC4?

I know that RC4 is weak. However, I don't know if two RC4 streams XORed with each other can be attacked in the same way that one can, especially if $n$ bytes are dropped. Assume keys and IVs are ...
Demi's user avatar
  • 4,763
-1 votes
1 answer
1k views

finding key from given ciphertext and open text

very new to crypto-stuff, i have to write a program in C that compute key(k) used in RC4 when I know open text(p) and ciphered(c) text so I have c_1=p_1 XOR k. How ...
lllook's user avatar
  • 123
1 vote
0 answers
52 views

Are there known practical attacks on RC4-dropN? [duplicate]

RC4 is known to leak information about the first few bytes of the ciphertext due to keystream biases. However, are there known attacks on RC4-drop[N] where N is large enough, that leak information ...
Demi's user avatar
  • 4,763
7 votes
1 answer
855 views

Can somebody help me understand RC4 Spritz? (Three Questions)

So ever since I first took a stab at understanding stream Ciphers, not one stood out more than RC4, because it's so fantastically simple. As most people reading this will know, with its fantastic ...
Iam Nick's user avatar
  • 540