0

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):

from Crypto.Cipher import ARC4
f = open('key.txt')
key = f.readline().strip()

o = open('output.txt','w')
f = open('input.txt')
for line in f:
    cipher = ARC4.new(key)
    print >>o, cipher.encrypt(line).encode('hex')

I know the weakness is that the same key is used to encrypt the traffic, however I need a hint as to how this might impact the security of the algorithm.

e-sushi
  • 17,891
  • 12
  • 83
  • 229
Don
  • 101
  • 1

0 Answers0