Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    20
    Views
    4,311

    Re: Problem Encrypting a secret key

    Can you make a class with a main() method that calls all the methods in the correct order? I don't like having to execute more than one class when testing. Testing often requires repeated execution...
  2. Replies
    20
    Views
    4,311

    Re: Problem Encrypting a secret key

    Where is the one main() that calls all of the other main() methods in the correct order?
    You have commented out where I started calling the other mains:

    public static void main(String args[]) {...
  3. Replies
    20
    Views
    4,311

    Re: Problem Encrypting a secret key

    Here are two of the path Strings:


    static String pathToKey = "RSAPublicKeyFile.key";
    static String pathToClntSecKey = "C:/Client/ClientsSecretKey";

    Then those Strings are used where...
  4. Replies
    20
    Views
    4,311

    Re: Problem Encrypting a secret key

    see you tomorrow
  5. Replies
    20
    Views
    4,311

    Re: Problem Encrypting a secret key

    That code still has hardcoded file paths.
    FileOutputStream keyFOS = new FileOutputStream(C:/Client/ClientsSecretKey);

    Can you define the path's each in a String like I did and then use...
  6. Replies
    20
    Views
    4,311

    Re: Problem Encrypting a secret key

    Ok, fix this so it works. I started making changes before I found that there were a lot more files than just 2:

    /*...
  7. Replies
    20
    Views
    4,311

    Re: Problem Encrypting a secret key

    That code has too many hard coded paths for easy testing. I don't want to set up lots of directories. For testing I want to be able to put all the files in one folder by easily changing the path to...
  8. Replies
    20
    Views
    4,311

    Re: Problem Encrypting a secret key

    Can you post the code to create the RSAPublicKeyFile file?
    And the ClientsSecretKey file?

    And any other data the program needs to execute.
  9. Replies
    20
    Views
    4,311

    Re: Problem Encrypting a secret key

    Search for: "UnlimitedJCEPolicy"
    There are jar files in the JRE that need to be changed.
Results 1 to 9 of 9