RC4 in cryptography is a widely used stream cipher. It's most common application is the WEP security algorithm. RC4 is fairly simple to understand and implement, on the other side, however, strong attacks on RC4 are known.
Questions tagged [rc4-cipher]
143 questions
3
votes
2 answers
How to decrypt a file that encrypted with rc4 using Python?
I got a file that encrypted with rc4 key.
I got that key and want to decrypt it with a python script.
How can I do this?

Gal
- 669
- 2
- 8
- 9
3
votes
0 answers
Can you specify which cipher suite your java application/client should use?
We have a java web application which generates birt reports by calling a soap web service. I believe Birt is using RC4 ciphers and those are considered weak and are being removed from our LTM/F5 as a result getting the below error.
[ACTIVE]…

Maverick Riz
- 2,025
- 5
- 19
- 23
2
votes
2 answers
How to use crypto/rc4
I'm trying to encrypt/decrypt some data in Go with RC4. I found that Go provides rc4 algorithm in crypto/rc4 package. I tried to encrypt/decrypt data using the package but ciphertext and decrypted plaintext is not what I expected.
I compared with…

Pol4b
- 51
- 6
2
votes
1 answer
RC4 implementation doesn't match openssl output
My goal is to implement the RC4 stream cipher in C/C++, and make sure it produces the same output as when using the openssl command.
Following the pseudocode on wikipedia,
this implementation appears to work, in that it can encrypt and decrypt…

janos
- 120,954
- 29
- 226
- 236
2
votes
1 answer
how to disable weak cipher TLS_ECDHE_RSA_WITH_RC4_128_SHA in Apache Traffic Server version 4.1
I am trying to disable weak cipher TLS_ECDHE_RSA_WITH_RC4_128_SHA in Apache Traffic Server version 4.1 reported by nap scan
I have RC4 removed in the SSLCipherSuite
cat records.config | grep RC4
CONFIG proxy.config.ssl.server.cipher_suite STRING…

Sharath Arakere
- 129
- 2
- 9
2
votes
2 answers
RC4 Encryption/Decryption with C# and Java
I even use the AES algorithm to encrypt and decrypt files, but according to my research, the performance of this algorithm is slower than the RC4 algorithm in Java.
I'm use this code for encrypt files in C#
public static class RC4
{
public…
user4775313
2
votes
1 answer
Encrypting files using RC4 encryption algorithm in C#
My question is, how do I encrypt and decrypt a file in C# using the RC4 encryption algorithm?
This is not a duplicate of these questions:
What is a NullReferenceException, and how do I fix it?
RC4 Algorithm: Unable to Encrypt / Decrypt data where…

Kaitlyn
- 791
- 1
- 10
- 28
2
votes
2 answers
How to disable SSL - RC4 Ciphers on Windows Server running Apache 2.4
I have a PHP application running under Apache 2.4 on a Windows Server. One of the business security issues is to disable SSL - RC4 Ciphers support.
I had added these lines in httpd.conf:
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder…

Arthur Mastropietro
- 673
- 1
- 7
- 22
2
votes
1 answer
RC4 encryption : is the output of same length of input
For one of my project I need to send a POST request from Arduino (using GSM modem) to PHP web server over Internet cloud. I need to transmit userid card details to webserver for authentication.
I tried using RC4 security algo and found that Ardunio…

Programmer
- 8,303
- 23
- 78
- 162
2
votes
0 answers
FMS attack on WEP in C++
I'm trying to implement the FMS attack on WEP. I understand that the attack takes advantage of the probability of parts of the RC4 sbox not changing to create "known" sbox states to reverse engineer the key. With many samples, the correct key octet…

calccrypto
- 8,583
- 21
- 68
- 99
2
votes
2 answers
RC4 Encryption and decryption in UTF-8 ASP classic
Is there a way to make this work in an ASP page?
It was working fine with charset windows-1253 but now I have to convert my site
to UTF-8 and the only problem I have is encryption and decryption. I have encrypted members registration passwords and…

WebStyler
- 35
- 5
2
votes
1 answer
Implementation of RC4 Encryption and URL encoding in objective c
I've to implement the RC4 encryption algorithm in my application for URL encoding.The sample part is listed below for your reference.
Actual value Before Encryption : 10/28/2013
Expected value After Encryption : ˆ!˜·hÇÔÞò
After URL encoding…

Raghunathan
- 59
- 5
2
votes
0 answers
combined RC4 RSA encrypt/decrypt for long messages Javascript
NOTE: Yes, I understand there is a lot of code in this message, but you do encourage us to show prior research and how we've been trying.
Let me preface this by saying, I am not interested in the security of this function. All I want is to encrypt…

kathleenie.xx
- 127
- 1
- 3
- 10
2
votes
1 answer
In Perl, while using RC4 I am unable to get back the encrypted text
I have a file with encrypted credentials with RC4,
The piece of code in charge to write such credentials to the file is the following:
sub dummyFunction() {
# Useless stuff for the scope of the problem
# ...
my $dbHost = "localhost";
…

ILikeTacos
- 17,464
- 20
- 58
- 88
2
votes
2 answers
Writing RC4 for a 16 bit system
I am writing RC4 for the DCPU-16, however I have some questions before I begin.
RC4 algorithm:
//KSA
for i from 0 to 255
S[i] := i
endfor
j := 0
for i from 0 to 255
j := (j + S[i] + key[i mod keylength]) mod 256
swap values of S[i] and…

Scott Chamberlain
- 124,994
- 33
- 282
- 431