Search:

Type: Posts; User: MHZ

Search: Search took 0.22 seconds.

  1. Replies
    2
    Views
    16

    Conversion of c# function into java

    Hello,

    I am new to java. I have written a function in C#,how can i convert it into Java.




    public AsymmetricKey readKey(String filename)
    {
    StreamReader reader = new...
  2. Re: java.io.StreamCorruptedException: invalid stream header

    Please convert the following C# code to Java code.

    StreamReader reader = new StreamReader(filename);
    String modulus64 = reader.ReadLine();
    String exponent64 =...
  3. Re: java.io.StreamCorruptedException: invalid stream header

    Thanks.
    It worked out when I run it through command prompt.
    Can you help me if I want to encrypt and decrypt by using fixed keys?
  4. Re: java.io.StreamCorruptedException: invalid stream header

    Strange. Then why its not working for me? I am using Myeclipse tool.
  5. Re: java.io.StreamCorruptedException: invalid stream header

    package in.javadigest.encryption;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import...
  6. java.io.StreamCorruptedException: invalid stream header

    Hello,

    I am trying to encrypt a message using RSA algo but getting the following error:

    java.io.StreamCorruptedException: invalid stream header
    at...
Results 1 to 6 of 6