1
   

HELP Plz Its been Eating At Me For Months (Really Hard)

 
 
Reply Wed 6 Feb, 2008 01:13 pm
All I Know Is Its A 1 Word Answer If That Helps Sad

Code

public class harness {
public static void main(String[] args) {
int[][] key = {{1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0},
{1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0},
{1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}};

int direction = 1;
int[] primes = {2,3,5,7,11,13,17,19};
String plainString = new String("I PUT THE TEXT IN HERE");
char[] plainCharArray = plainString.toCharArray();
int[] plainIntArray = new int[plainCharArray.length];
int[] cipherIntArray = new int[plainCharArray.length];
char[] cipherCharArray = new char[plainCharArray.length];
for(int x =0; x<plainIntArray.length; x++)
plainIntArray[x] = (int)plainCharArray[x] -97;
for(int x = 0; x < plainIntArray.length; x++){
int k = 0;
for(int y = 0; y <8; y++){
k+= key[y][x%primes[y]] %26;
}
cipherIntArray[x] = (plainIntArray[x] +direction*k +260)%26;
}
for(int x =0; x< cipherIntArray.length; x++)
cipherCharArray[x] = (char)(cipherIntArray[x] +97);
String myString = new String(cipherCharArray);
System.out.println(myString);


}
}


for decription you enter the ciphertext at the same place, and you set direction to -1
the key is that matrix, the 1's are spots that can be entered, and the spots that are 0 do not change
by the way, everything is lowercase and there are no spaces
here is what is generated by encrypting my message to you guys:

charsxrowtrvizrrcvnlcftgdkhhnafgewhefszmfdwvqmvujqflkpapjwwhobliliodhlawtkkjwgzzhdzcqqxuywfwuhvaultavvemlfvmvoewlpqsjybrlrpdtnluyixodgahozgiswirvvikyhmeacnxhxpcfefptagvukxzumqlpshprzfsjrgvhjqmijbqrehcnavwalyuyxfluvvayseqmkaalvzkyvpflfxafywgcmhlfeaykncgguvlttziuwwjapupyublggnkygaasam
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 680 • Replies: 8
No top replies

 
Quincy
 
  1  
Reply Wed 6 Feb, 2008 02:38 pm
How about "rubbish"?
Please give us a little more to go on, like the language at least.
0 Replies
 
FreeDuck
 
  1  
Reply Wed 6 Feb, 2008 02:43 pm
What's the question?
0 Replies
 
Quincy
 
  1  
Reply Wed 6 Feb, 2008 02:45 pm
I think it's a cryption (?) of a word created by a computer code.
0 Replies
 
shewolfnm
 
  1  
Reply Wed 6 Feb, 2008 03:03 pm
Quincy wrote:
How about "rubbish"?


Laughing
0 Replies
 
ebrown p
 
  1  
Reply Wed 6 Feb, 2008 03:05 pm
The language is Java (for what its worth).
0 Replies
 
kissofdeath
 
  1  
Reply Wed 6 Feb, 2008 11:37 pm
Ive Given Yous What Was Given To Me...
And By The Ammount Of Ppl Who Cant Solve This I Assume I Had No Chance

I Think This Was Covered In School By Some1

I Just Didnt Do This Course

So I Figured What Might Be Hard For Me Would Be Easy For You?


I Honestly Cannot Tell You What Attempts Ive Tried

When I Feel Like Im Getting Close To An Answer It Just Slips Away Sad
0 Replies
 
kissofdeath
 
  1  
Reply Thu 7 Feb, 2008 12:03 am
Yeh Just Confirmed The Language Is Java
0 Replies
 
markr
 
  1  
Reply Thu 7 Feb, 2008 03:04 am
You need to modify the key by changing the ones (they can range from 0 to 25). The current zeros are unused; so you don't need to change them.

There are 77 ones. 26^77 = a large number of possible keys.
0 Replies
 
 

Related Topics

Evolution 101 - Discussion by gungasnake
Typing Equations on a PC - Discussion by Brandon9000
The Future of Artificial Intelligence - Discussion by Brandon9000
The well known Mind vs Brain. - Discussion by crayon851
Scientists Offer Proof of 'Dark Matter' - Discussion by oralloy
Blue Saturn - Discussion by oralloy
Bald Eagle-DDT Myth Still Flying High - Discussion by gungasnake
DDT: A Weapon of Mass Survival - Discussion by gungasnake
 
  1. Forums
  2. » HELP Plz Its been Eating At Me For Months (Really Hard)
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.05 seconds on 06/16/2025 at 02:23:33