Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Let's have an encryption CHALLENGE!
#17
Quote:mango:

But I'm still lost, though:

"Therefore, if a file longer than 1000 bits is being encrypted, the key must either repeate (generally a no no) or be updated at each iteration."

So you make the key longer. Is that correct?

no...what I did in v3.1 is to take the key and xor the file against it. When I ran out of key, I would stop encrypting, and update the key, so that it would never repete. The key update scheme involved "stepping an automata" seeded with the key on a (32-bit)word-by-word basis...I did this for speed...turns out that this is not a good method, because if someone has partial info about the file (eg they guessed it was a word doc and knew the header structure) *and* if they correctly guessed the key length, then they would be able to unencrypt portions of the rest of the file that fell under the part of the original key (and it's updated versions) that the attacker knew.

Quote:One more question: Do you actually update every single bit and expand by two bits each time? Or do you just keep adding the previous step, which would make it A LOT faster? (and still random most likely..)

yes-I updated every bit and discarded all previous info. It would be unsafe to simply add the update to the previous key...then...if an attacker knew the contents of the first little bit of the encrypted file, he could easily get the whole key...this is the basic problem with my key-update scheme. However, its not so bad since the key is pretty long...basically, you dont want an attacker's knowledge of part of the key to allow him to calculate the rest (or part of the rest) of the key...and summing the lines of the automata would allow just that...


it only takes a second or so to generate the 1000 bit key...and that is using my slow method...my current method that works in parrallel is circa 25 times faster....it's really not a problem. Try encrypting a big file (like a 1 MB jpg) with an 8-10 character password...it should take less than 10 seconds to do the encryption.

cheers
Reply


Messages In This Thread
Let's have an encryption CHALLENGE! - by relsoft - 06-11-2003, 08:16 AM
here it is - by Agamemnus - 06-11-2003, 08:34 AM
Let's have an encryption CHALLENGE! - by oracle - 06-11-2003, 12:46 PM
Let's have an encryption CHALLENGE! - by Neo - 06-11-2003, 03:02 PM
BASIC encryption - by Mango - 06-11-2003, 07:49 PM
Let's have an encryption CHALLENGE! - by oracle - 06-12-2003, 01:35 AM
key update - by Mango - 06-12-2003, 04:34 AM
Let's have an encryption CHALLENGE! - by oracle - 06-12-2003, 05:36 AM
My prog - by Meg - 06-12-2003, 04:50 PM
Let's have an encryption CHALLENGE! - by Mango - 06-12-2003, 06:39 PM
Let's have an encryption CHALLENGE! - by oracle - 06-16-2003, 01:38 AM
Let's have an encryption CHALLENGE! - by oracle - 06-16-2003, 01:23 PM
Let's have an encryption CHALLENGE! - by Neo - 06-16-2003, 02:53 PM
unknown, - by Agamemnus - 06-17-2003, 04:03 AM
. - by Meg - 06-18-2003, 10:37 AM
hmmm - by Agamemnus - 06-20-2003, 01:42 AM
Let's have an encryption CHALLENGE! - by oracle - 06-20-2003, 02:41 AM
Let's have an encryption CHALLENGE! - by barok - 06-20-2003, 05:28 AM
Let's have an encryption CHALLENGE! - by oracle - 06-20-2003, 09:34 AM
Let's have an encryption CHALLENGE! - by barok - 06-20-2003, 07:26 PM
Let's have an encryption CHALLENGE! - by oracle - 06-21-2003, 05:04 AM
i'll announce the winners in.... - by Agamemnus - 06-27-2003, 01:44 AM
Let's have an encryption CHALLENGE! - by oracle - 06-27-2003, 11:04 AM
Let's have an encryption CHALLENGE! - by oracle - 07-04-2003, 07:58 AM
well, - by Agamemnus - 07-09-2003, 05:10 AM
Let's have an encryption CHALLENGE! - by Blitz - 07-22-2003, 07:54 AM
Let's have an encryption CHALLENGE! - by na_th_an - 07-22-2003, 01:12 PM
Let's have an encryption CHALLENGE! - by Mango - 07-22-2003, 06:09 PM
Let's have an encryption CHALLENGE! - by Mango - 07-22-2003, 10:16 PM
Let's have an encryption CHALLENGE! - by oracle - 07-23-2003, 01:56 AM
Let's have an encryption CHALLENGE! - by Blitz - 07-23-2003, 03:30 AM
Let's have an encryption CHALLENGE! - by Blitz - 07-23-2003, 03:39 AM
Let's have an encryption CHALLENGE! - by oracle - 07-23-2003, 08:20 AM
Let's have an encryption CHALLENGE! - by Blitz - 07-23-2003, 10:20 AM
um. - by Meg - 07-23-2003, 11:20 AM
aga - by Meg - 07-24-2003, 02:39 AM
Let's have an encryption CHALLENGE! - by Blitz - 07-24-2003, 03:25 AM
yeah it prolly does - by Meg - 07-24-2003, 04:51 AM
well - by Meg - 07-24-2003, 06:32 AM
Let's have an encryption CHALLENGE! - by Phydaux - 07-24-2003, 06:23 PM
Let's have an encryption CHALLENGE! - by Blitz - 07-24-2003, 08:43 PM
Let's have an encryption CHALLENGE! - by Phydaux - 07-24-2003, 09:54 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)