Java Encryption C# Decryption -


I have found a module that encrypts RSA data and passes to C #. C # need to be decrypted based on public key (64 bit encoded) and passed token.

I have tokens, 64-bit encoded public, something can help me get samples to get started. I know from all the java end, it is using. I got the results from Java end and need to write parser in C # to decrypt it. I get both a public key and a token in the form of a string value.

  cipher cipher = cipher Past insertion (algorithm); // algorithm = "RSA" cipher. It (cipher dircp_mode, key);  

Thanks

To get started, you need to decrypt the message To do this from the Private key "Public Key (64 bit encoded)", I think that in fact you have base-64 & ndash; Encoded certificate, which has a header line which is "----- BEGIN certificate -----" and a footer that says "----- end certificates -----".

If this is correct, you will need to find a private key. It is sometimes stored in a PKCS # 12 format file, with a ".P12" or ".pfx" extension, the private key You will need a password to access if it is stored in such a file.

Alternatively, OpenSL and other utilities use private key files that are base-64 & ndash; Can be encoded or binary. They contain several types of extensions, and may not be password-protected or otherwise. If you have a file that contains "----- RSA Private Key -----" or "----- Private key -----" is the title line, which is actually a private key.

Finally, Windows can store the private key in its internal key store.

When you clarify the location of the private key, please update your question.


If the private key is used on the Java side, it may be an attempt to demonstrate a digital signature when I have tested many Java providers, producing the right results. Time (AB) is used in this way, if you are signing a sign then the signature class should be used. The C # code should also be used as a "signature" signature object.

The encryption is done with the private key, because the public key is public; any message can decrypt; That is, the message is not confidential. Public keys are used by recipients to verify signed messages.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -