Code Comments
Programming Forum and web based access to our favorite programming groups.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.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.