Note that there are some explanatory texts on larger screens.

plurals
  1. POJava implementation of C++ encrypt decrypt function(Cryptix toolbox)
    primarykey
    data
    text
    <p>Hi I am trying to encrypt and decrypt data that is used in 2 systems( The one is C++ and the other Java) I found a Demo project from code project : <a href="http://www.codeproject.com/Articles/1380/A-C-Implementation-of-the-Rijndael-Encryption-Decr" rel="nofollow noreferrer">Encryption</a> this is the c++ encrypt decrypt functions and it works when I implement the code using the functions : </p> <pre><code>void main() { try { CRijndael oRijndael; oRijndael.MakeKey("abcdefghabcdefgh", "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16, 16); char szDataIn[] = "Password12345678"; char szDataOut[17] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; oRijndael.EncryptBlock(szDataIn, szDataOut); cout &lt;&lt; "[" &lt;&lt; szDataIn &lt;&lt; "]" &lt;&lt; endl; cout &lt;&lt; "[" &lt;&lt; szDataOut &lt;&lt; "]" &lt;&lt; endl; memset(szDataIn, 0, 16); oRijndael.DecryptBlock(szDataOut, szDataIn); cout &lt;&lt; "[" &lt;&lt; szDataIn &lt;&lt; "]" &lt;&lt; endl; } catch(exception&amp; roException) { cout &lt;&lt; roException.what() &lt;&lt; endl; } } </code></pre> <p>This gives me the following output in the console :</p> <p><img src="https://i.stack.imgur.com/47CNx.png" alt="enter image description here"> </p> <p>The data is encrypted end decrypted.. </p> <p>Could any one please help me or point me in the right direction for the Java implementation to encrypt and decrypt the same data getting the same results ( encrypt in C++ and then decrypt in Java and encrypt in java decrypt in c++)? In the post they talk about Cryptix toolkit?</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload