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
0
votes
0 answers
How to convert value from special character to string with the key word
I have special characters that i convert it by using this code.
public static string FromHex(string sText)
{
var bytes = StringToByteArray(sText);
var latinEncoding = Encoding.GetEncoding(1252);
var result =…
0
votes
2 answers
Is it RC4 or ARCFOUR? InvalidKeyException when using SecretKeySpec?
I tried running my application on my pc, but I keep getting this thing. Is it possible that I'm missing some libraries?
fabsam.crypto.CryptoException: java.security.InvalidKeyException: No installed provider supports this key:…

Rihards
- 10,241
- 14
- 58
- 78
0
votes
0 answers
RC4 Not generating the proper scrambled state array
I have the follow code below to generate a scrambled state array, however, it does not seem to be generating the properly randomized state array for the key (51323).
unsigned char* generateStateArray(unsigned long key) {
unsigned char s[256];
…

Kaveen K
- 33
- 4
0
votes
0 answers
Decrypt pcap RC4 encryption with pycrypto
Part of a training exercise I'm doing I need to decrypt data transmitted and saved in a pcap.
I know the encryption is RC4 and I have the key which I know is correct
I wrote a really basic python script using pycrypto which I thought would do it…

Tavar
- 1
- 2
0
votes
0 answers
RC4 encryption does not produce expected output
I am trying to understand how to use ARC4 encryption algorithm (just for educational purposes, I know it's not secure anymore), and I seem to be able to encrypt text but not decrypt it. Here is the very basic code:
from Crypto.Cipher import…

JustABeginner
- 321
- 1
- 5
- 14
0
votes
1 answer
Issue compiling code with openssl RC4 header in C
I am working on adding a test program in C that implements openssl RC4 functions. The man page in Linux gives me the format for the functions and says to include the header file, which I did. However, when I try to compile, it keeps giving me…

Chris
- 95
- 9
0
votes
1 answer
RC4 ENCRYPTION algorithm binary conversion
I was referring this site for RC4 encryption.
there they are getting 2 outputs after encryption one hexadecimal output and other is hexadecimal converted to special characters.
like in the following image
I was able to replicate the hexadecimal…

Arun Michael
- 190
- 2
- 12
0
votes
1 answer
How to encrypt public key with rc4 in openssl?
I have found this way of generating rsa public key with openssl and encrypting it with aes:
openssl genrsa -aes256 -out public.pem 4096
how could i do the same with rc4:
openssl genrsa -rc4 -out public.pem 4096
Generating RSA private key, 4096 bit…

B1ZON
- 13
- 2
0
votes
1 answer
How can I restore rdp connect to windows server 2012 r2 (hosted on aws) with turned off SHA256, SHA384, SHA, MD5, AES 128/128?
I turned off (set 0 value in "Enabled") AES 128\128 cipher, and SHA, SHA256, SHA384, MD5 hashes in windows server 2012 R2 registry (hosted on aws).
Then I used command "Restart-Computer" and cannot to login via RDP to my server. How can I restore…

Ustin
- 568
- 6
- 19
0
votes
0 answers
RC4 encryption with 256-bits key in bash
I need to perform RC4 encryption with 256-bits key. Surprisingly. openssl won't let me:
# printf 'cleartext' |openssl rc4 -K 3132333435363738393031323334353637383930313233343536373839303132 -iv 0 -a…

wick
- 1,995
- 2
- 20
- 31
0
votes
1 answer
Legal restrictions of using RC4 decoder
Does anybody know what exactly is protected by IP? Searching the RSA website for RC4 does not find any match.
From the PDF 1.7 documentation:
Note: RC4 is a copyrighted, proprietary algorithm of RSA Security,
Inc. Adobe Systems has licensed this…

be_mi
- 529
- 6
- 21
0
votes
1 answer
Creating an RC4 / DES SSL PFX
I'm trying to check a specific IIS configuration, which should reject weak SSL certificates.
How would I go about creating an SSL certificate with either RC4 or DES encryption?
I've tried using openssl with the -des flag, but it seems to still…

Yoav Lavi
- 365
- 1
- 3
- 10
0
votes
0 answers
Encryption char[] to String to byte[] conversion results in different result
I am writing a UDP program to send byte[] to the host , i need to send a encrypted text ( RC4 ) to the host , whereby the host decrypt and get the plaintext but i met with some problems whereby where i convert char[] to byte[] to send to host , the…

what
- 373
- 2
- 10
- 20
0
votes
0 answers
How to decryption with MCRYPT_ARCFOUR?
I am trying to decrypt a text which is encrypted with ARCFOUR cipher. But it is not giving me the desire output.
My code:

Ruhul Amin
- 15
- 11
0
votes
0 answers
Disable Weak ciphers on a particular port
I recently scanned my system for PCI compliance test using NMAP.
NMAP reported following weak ciphers-
TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA (dh 1024) - D
TLS_RSA_WITH_3DES_EDE_CBC_SHA (rsa 2048) - C
TLS_RSA_WITH_RC4_128_MD5 (rsa 2048) -…

vsinha23
- 11
- 6