Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Let's have an encryption CHALLENGE!
#9
From now on, can we just stick to:
key%, ciphertext% (output), and plaintext% (input) for ease of use? Smile

oracle:
First, I'd get analyze the ciphertext string and find the average repetition length of numbers after zero. (which will be 100% len.temp$ - 7).

Then I'd remove the extras.

Then, I'd divide the string into numbers according to average.repetition.length% + 7 (or somethin like that).

Then I'd subtract 9999 from each number. Then, I'd do the same thing as I did before.

*OR*
I can even just factor a bunch of numbers and get the factor that appears in all of them. If I reach a number that has two factors and one of those factors didn't appear before, the other one must be the key.

Then I divide by the key.

*OR*
I go through every number from 1 to 256 and divide each number by that. As soon as I get a number that doesn't divide evenly (gets a remainder), I skip that test key and go on to the next. The one that passes is the one that I will use to divide each number in the number array and get the answer.

--------------------------------------------

Neo:

I changed the variables in your code:

Code:
FUNCTION KT.ENC.DifCipher$(plaintext$ AS STRING, key AS INTEGER)

'a completely new ciphering method -> Dif Ciphering
'by Neo Deus Ex Machina

'I thought of this ciphering, it's completely new ;) lol
'It uses the difference with a sequent character from the base character

base.char$ = MID$(plaintext$, 1, 1)
ans$ = base.char$
cur.key% = 1

FOR i = 2 TO LEN(plaintext$)

IF cur.key% = key THEN
cur.key% = cur.key% + 1
base.char$ = mid$(plaintext$, i, 1)
ans$ = ans$ + base.char$
ELSE
new.char$ = MID$(plaintext$, i, 1)
diff% = ASC(new.char$) - ASC(base.char$)
IF diff% >= 0 THEN ans$ = ans$ + CHR$(diff%) ELSE ans$ = ans$ + CHR$(256 + diff%)
END IF

NEXT i

KT.ENC.DifCipher$ = ans$
END FUNCTION

I'm sure it's breakable but I can't figure out how, yet.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
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 Agamemnus - 06-11-2003, 08:12 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)