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
256 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
2 votes
2 answers
1k views

Question about the key in RC4

I am planning to develop a more secure version of the RC4 algorithm. Since I´m not an encryption expert, I´ld like you to help me find answers to the following questions: Does the value of the key ...
lena's user avatar
  • 21
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
2 answers
93 views

Combined message separation?

I have two ciphertexts, I suppose that its RC4 with reused key. I have XORed both ciphertexts and obtained message containing combined cleartexts. I suppose that the underlaying messages are written ...
malejpavouk's user avatar
2 votes
1 answer
774 views

Can you help me understand how RC4-52 is done using pen-and-paper?

I've played a lot with VIC and enjoy its complexity and effectiveness as a field cipher. However, RC4 has caught my attention lately and I've read there is a RC4-52 variant that can be done by hand. ...
cobus's user avatar
  • 21
2 votes
2 answers
165 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
2 votes
1 answer
1k 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
149 views

Is it secure to use ciphertext feedback with RC4?

Consider the following modification of RC4 to give some "ciphertext feedback" ...
PO8's user avatar
  • 23
2 votes
1 answer
266 views

RC4 system pitfalls

A system fell into my neck, where lots of files are splitted into several segments and encoded via RC4. RC4, because client side - slow computer, slow flash arithmetic ops - can only decode big blobs ...
MollyRazor's user avatar
2 votes
1 answer
1k views

RC4 S-Box and Keystream

I'm studying the RC4 algorithm and I have the following questions: On all questions assume that an expanded (2048-bit) key is used, and that the first 4096 bytes of the KeystreamIm are discarded. ...
Devros Exrix's user avatar
2 votes
1 answer
661 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
2 votes
2 answers
915 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
2 votes
1 answer
616 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
2 votes
1 answer
131 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
1 answer
591 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
2 votes
0 answers
70 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
2 votes
0 answers
223 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
2 votes
1 answer
1k views

Recovery of RC4 key when S-box 0 stage or 1st stage known

I've been exploring around, trying to understand if such thing is even possible. I have some RC4 ciphertext which I know it's plaintext and I would like to extract the key just from cipher and ...
devdc's user avatar
  • 23
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
1 answer
861 views

How should I treat a new cipher release like Spritz?

I have been looking at both the paper as well as the sourcecode of Spritz — a spongy RC4-like stream cipher and hash function by Ronald L. Rivest and Jacob Schuldt. The paper states We have also ...
Trina's user avatar
  • 694
1 vote
2 answers
2k views

What is the time complexity of the RC4 encryption & decryption algorithms?

I'm trying to figure out what the time complexity of RC4 encryption & decryption algorithms is, in big-O-notation.
Kriss Wen's user avatar
1 vote
1 answer
92 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.3k
1 vote
1 answer
278 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
  • 553
1 vote
2 answers
544 views

Do these 2 KSA shortcuts weaken RC4?

Alice securely gives Bob a secret key so they can exchange 10 different messages encrypted with RC4. (Messages will include a counter for uniqueness and a MAC for authentication.) For each message ...
Witness Protection ID 44583292's user avatar
1 vote
1 answer
108 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
1 vote
1 answer
272 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
1 vote
1 answer
79 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
1 vote
1 answer
51 views

Why Distance-128 relation in Plain texts is reflected in Cipher texts

The two text having relation as "\x10\x11" → "\x90\x91" (80+10) will have relation after encryption/decryption also in RC4. Following code clearly describes the problem I am mentioning. ...
ceasif's user avatar
  • 161
1 vote
0 answers
87 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
1 vote
0 answers
175 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
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
1 vote
0 answers
124 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
1 vote
0 answers
76 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
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,793
1 vote
0 answers
42 views

How to calculate LOW(b) and HIGH(b) in spritz cryptography

I try to implement spritz cryptography like this paper . But I don't know how to calculate LOW(b) and HIGH(b). In paper page 7. ...
user572575's user avatar
1 vote
0 answers
76 views

Is TLS_RSA_WITH_RC4_128_SHA still a secure cipher to use? [duplicate]

I have read numerous times that the RC4 cipher itself is considered broken in TLS. Still many websites are using the TLS_RSA_WITH_RC4_128_SHA configuration even to date. Now, I know that sometimes ...
random_error's user avatar
1 vote
0 answers
428 views

What RC4 key value will completely invert $S$ after initial permutation?

What RC4 key value will completely invert $S$ after the initial permutation, so that $S[0] = 255, S[1] = 254, …, S[254] = 1, S[255] = 0$?
user12091's user avatar
0 votes
1 answer
834 views

How much stronger is RC4 if it is keyed with an RSA private key?

My idea is to generate a RSA 2048 bit key and use RC4 with the private RSA key to encrypt a stream of data. RC4 is weak because RC4 keys are small, 256-bit. But when we use RC4 with private RSA 2048 ...
Bilal Saad's user avatar
0 votes
1 answer
5k views

Does ssl_rsa_with_rc4_128_md5 have known weaknesses?

My bank's website uses HTTPS with the cipher suite ssl_rsa_with_rc4_128_md5. What are the known weaknesses of this suite? Do they have a practical impact for ...
nwaf's user avatar
  • 19
0 votes
1 answer
200 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
1 answer
200 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
0 votes
1 answer
2k views

Encryption Algorithms in Verilog code

Can we implement Encryption Algorithms like RC4,AES and DES in Verilog? if no what are the limitations?
keerthi kalyan's user avatar
0 votes
1 answer
393 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
908 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
0 votes
1 answer
21k 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
32 views

Is it possible to calculate key(0) and key(1) of ZipCrypto using key(2)?

Here is Zipcrypto decryption algorithm: ...
terry franklin's user avatar
0 votes
1 answer
99 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
2 answers
959 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
162 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
156 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