Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.security > #93

simple brute force code t

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "smarto59" <smarto59@THRWHITE.remove-dii-this>
Subject simple brute force code t
Message-ID <ece2776b-ae6a-4a7d-9b96-61766771369a@e6g2000prf.googlegroups.com> (permalink)
X-Comment-To comp.lang.java.security
Newsgroups comp.lang.java.security
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 21
Date Wed, 27 Apr 2011 16:08:07 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303920487 96.60.20.240 (Wed, 27 Apr 2011 11:08:07 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 11:08:07 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.security:93

Show key headers only | View raw


  To: comp.lang.java.security
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.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.security | Previous | Next | Find similar


Thread

simple brute force code t "smarto59" <smarto59@THRWHITE.remove-dii-this> - 2011-04-27 16:08 +0000

csiph-web