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 / Security / January 2005

Tip: Looking for answers? Try searching our database.

256 bits key

Thread view: 
DJkapi - 11 Jan 2005 11:49 GMT
I want my program to use 256 bits key for encryption with Rijndael.
Everything is working up to a moment when i want to install "Unlimited
Strength Jurisdiction Policy Files" : Local_policy.jar and
US_export_policy.jar from command line. I don;t want to copy those files to
(java home)\jre\lib\security directory. I want only to make them available
during the runtime of my program. Do you happen to know how can  I do it? i
think that i have to write something like that in command line :
java -Djava.security.manager -Djava.security.policy= example.policy MyApp

in the file example.policy i have the following:

grant codeBase "file:/Policy/*" {
permission java.security.AllPermission;
};
grant {
permission java.security.AllPermission;
};

But i still get an error : Unsupported keysize or algorithm parameters".
What can be a solution for it??

Regards
DJKapi
Artur Go?da - 23 Jan 2005 18:50 GMT
> I want my program to use 256 bits key for encryption with Rijndael.
> Everything is working up to a moment when i want to install "Unlimited
[quoted text clipped - 19 lines]
> Regards
> DJKapi

try to set corresponding security provider in code like that:
Security.addProvider(new name_of_provider_class());

regards,
artur


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.