Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Security > simple brute fo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1765 of 1825
Post > Topic >>

simple brute force code to crack AES

by smarto59@[EMAIL PROTECTED] Apr 2, 2008 at 03:42 AM

hi
I should write a code to break AES encryption. I have the key in file
but its not complete so i have to guess the missing right most 16-bits
out of 128-bits. I don't know how to treat the key at the level of bit
where i get it as SecretKey. This is my code:

ObjectInputStream in = new ObjectInputStream(new
FileInputStream("SecretKey.ser"));
SecretKey key = (SecretKey)in.readObject();
byte[] raw = key.getEncoded();
SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");

how can i make a for loop to move over all possible key values.

please help.
 




 1 Posts in Topic:
simple brute force code to crack AES
smarto59@[EMAIL PROTECTED  2008-04-02 03:42:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 10:52:25 CDT 2008.