Hi all,
How to generate "AES" SecretKey from raw Key bytes , say ,
0xabcdef......
using JDK 1.5 with "SunJCE".
(SecretKeyFactory doesn't generate "AES" keys)
(plz give outline of solution code.)
Luc The Perverse - 10 Nov 2006 05:43 GMT
> Hi all,
>
[quoted text clipped - 3 lines]
> (SecretKeyFactory doesn't generate "AES" keys)
> (plz give outline of solution code.)
I search for java aes example
This is the top link
http://java.sun.com/developer/technicalArticles/Security/AES/AES_v1.html
Then I look at this page
http://java.sun.com/j2se/1.5.0/docs/api/javax/crypto/spec/SecretKeySpec.html
And notice the constructor.
The funny thing is - I didn't know the answer to your question before I
began.
Maybe you should try this google thing
--
LTP
:)