Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2006

Tip: Looking for answers? Try searching our database.

generating AES key with raw key bytes

Thread view: 
Rajesh - 10 Nov 2006 04:48 GMT
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

:)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.