Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 979579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:14:29+00:00 2026-05-16T04:14:29+00:00

I am facing an issue with SecureRandom in java. This was the code that

  • 0

I am facing an issue with SecureRandom in java.

This was the code that used to work as expected ,Generating PRNG when it ran on java 1.4.
So basically when it was executed any weblogic server running on 1.4 generated same PRNG

Problem:
In a clustered env , data is encrypted in the one weblogic 10 instance , and the same needs to decrypted in another weblogic 10 instance.Apparently not working

FYI:
We didnt face this issue in Weblogic 8.1 as it was runing in 1.4 and the key generated in both servers returned same as the secureRandom was generated with the same SEED.

Code:

SecureRandom srandom1 = SecureRandom.getInstance("SHA1PRNG");
        srandom1.setSeed(TestClient.RANDOM_SEED);

            KeyGenerator keyGen1 = null;
            try {
                keyGen1 = KeyGenerator.getInstance("AES");
            } catch (NoSuchAlgorithmException nsae) {

            }

            keyGen1.init(srandom1);
            Key g_Key_with = keyGen1.generateKey();

but we observe that after migrating to java 1.5 , the above functionality breaks.
The issue here is SecureRandom seems to generate different PRNG for the same seed in two different weblogic 10 Servers running on Java 1.5 ?

I did refer the thread : http://forums.sun.com/thread.jspa?threadID=5298375

so could anyone please suggest the alternative to using SecureRandom /possible fix ?

UPDATE

[b]Update:[/b]

Possible solution :
We could store the key in a keystore and place it in a File Location. and use the same key for decrypting.
But how would i go about doing it in a clustered environment. As key generated in one weblogic instance , needs to decrypted in the another.

Could you let me know the approach for this as well ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:14:30+00:00Added an answer on May 16, 2026 at 4:14 am

    The question was answered at forums.sun.com. It isn’t meant to provide the same sequence from the same seed. It’s secure. Thats what secure means in this context.Your expectations are misplaced. This is all documented.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 508k
  • Answers 508k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The smaller problem doesn't seem to be much of a… May 16, 2026 at 4:23 pm
  • Editorial Team
    Editorial Team added an answer On a browser restart, user sessions aren't maintained. So, you… May 16, 2026 at 4:23 pm
  • Editorial Team
    Editorial Team added an answer What you're trying to do looks very much like a… May 16, 2026 at 4:23 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am using C# for my programming. I am facing issue, that my hidden
I am facing strange issue. I have wep-part that reads data from user's profile.
I am facing an issue with my code . the thing is i want
I'm facing a big issue IMO. First, here's my code: .bind('uploadSuccess', function(event, file, serverData){
I am facing this problem and finding solution for this issue since last 2
I am facing issue of the WCF Services on staging server. The same service
I am facing issue with the following Json reponse object in the javascript eval
I am facing strange issue on Windows CE: Running 3 EXEs 1)First exe doing
We are facing an issue where the following check fails intermittently in IE: pseudocode:
I am facing an issue with IE6 : every time I mouse over an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.