142 questions
1
vote
1
answer
345
views
Decrypt RC4 with Python knowing the key
I come here with a little problem (sorry for my english this is not my mothertongue).
I have a little malware project at school, globally I have a keylogger which create a file and then encrypt the ...
0
votes
1
answer
378
views
Problems with encoding in RC4 Algorithm
I have to make a small demonstration about encrypting text using the RC4 Algorithm. To do so, I chose to use Java in NetBeans.
My code uses byte arrays for the permutation and the XOR operation. But ...
0
votes
1
answer
110
views
Unknown ciphertext appended to decrypted plaintext
I'm using a RC4 stream cipher to encrypt/decrypt data sent through a Java UDP client-server program. My code works as intended on the host program and displays the correct plaintext and ciphertext, ...
1
vote
1
answer
4k
views
How to encrypt any js file (in browser) using CryptoJS?
I have a task: Implement a program that encrypts a file using a strong symmetric cipher.
After researching the requirements and features, I chose the RC4 algorithm and its implementation in the ...
1
vote
1
answer
5k
views
Java 17 Update - Cannot find key of appropriate type to decrypt AP-REQ - RC4 with HMAC
I have a productive Java application using Kerberos for SSO.
After I update Java from version 16 to 17, I run into the following Error:
Cannot find key of appropriate type to decrypt AP-REQ - RC4 with ...
0
votes
0
answers
81
views
TCL rc4 package
I wanted to learn how to use the TCL rc4 package .. the only documentation I can find are all just different sites with the same wiki, and the command example doesn't work.
Example:
% set keydata [...
-3
votes
1
answer
651
views
How can I decrypt a string and get the algorithm used for the encryption [closed]
I want to know how to decrypt a text without knowing the key used or the algorithm such as this text:
RUE2RDRDMDE5OTpxci1hZG1pbi1yZWFkZXIxOjAwMDdDMUJBOEU4Q0IyOUQwNjg1RkJDRkMzMDdDMjc4:...
0
votes
1
answer
289
views
Connection fail in end user browser after disable weak ciphers and lower tls version in windows server
First I disable the following things in windows server 2016.
Triple DES cipher
RC4 cipher
TLS CBC Mode ciphers
TLS 1.0
TLS 1.1
Then, I reboot the server.
Finally, I call the web application which is ...
2
votes
2
answers
3k
views
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 ...
0
votes
2
answers
286
views
Can someone tell me how I use a RC4 key string to create the key again?
Please help me :(, I am trying this answer in this post Converting string to SecretKey
But it doesn't seem to be working for RC4, please tell me what I am doing wrong.
This is my RC4 class in a ...
1
vote
1
answer
168
views
Resolving Indexerror In Python RC4 Cipher Code
I'm fairly new to programming in python and have been tasked with creating a RC4 cipher in python. This implementation utilizes numpy. If someone could help me resolve this error in the cipher code it'...
2
votes
1
answer
700
views
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 ...
0
votes
1
answer
819
views
RC4 Encryption Function
I am trying to create a R function that will take a seed,and key length to generate a RC4 keystream.
The following is what I have so far:
library(numbers)
library(seqinr)
library(...
0
votes
0
answers
102
views
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(...
0
votes
0
answers
1k
views
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 ...
-1
votes
1
answer
6k
views
fatal error: openssl/opensslconf.h: No such file or directory
I try to compile a C file which decrypts and executes an rc-4 encryped shellcode with virtual alloc.
Now I get an error:
"In file included from rc-4.c:2: rc4.h:62:11: fatal error:
openssl/...
1
vote
0
answers
197
views
Is there a version or modification of RC4 that will produce encrypted strings that are safe for use as cookie values
I need to obfuscate sensitive information like email addresses written to visitor cookies on my website and was hopeful about RC4. But I had written a simple test to compare each character in strings ...
-1
votes
1
answer
788
views
Is it possible to encrypt a file line by line without encoding the resulting byte array before writing to file?
I need to encrypt a file line by line using the RC4 algorithm without encoding the resulting byte array from the encryption. I saw a post on here about how to encrypt line by line and it works fine ...
-1
votes
2
answers
422
views
RC4 Encryption/Decryption for integers Java
In short, I have a integer value about 10 digits long. I would like to encrypt it using rc4 algorithm in Java. I went online and search, but I could only find encryption for string values/plaintext. ...
1
vote
1
answer
2k
views
Difference between openssl rc4 command line encrypt and cpp file implementing rc4
I am working on trying to encrypt a text file via RC4 with a cpp file that I wrote with openssl/rc4 headers, and then decrypt via the command line to show that my implementation is correct.
My ...
1
vote
1
answer
1k
views
RC4 Using VBScript and Python
I've been trying to learn VBScript, and gave myself a bit of a challenge. I wanted to create a function in VBScript that encrypts something in RC4, and decrypts in Python (essentially the same process/...
0
votes
1
answer
610
views
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 ...
0
votes
1
answer
209
views
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 ...
0
votes
1
answer
261
views
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 ...
0
votes
0
answers
246
views
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:
<?php
$key = "25f9e794323b453885f5181f1b624d0b";
$data = "...