robi83 Posted March 20, 2007 Share Posted March 20, 2007 i want to decrypt file that i encrypt using php rijndael(aes),but iwant to decrypt it using .net can anyone help me/ this is my encrypt and decrypt function code using php <?php function my_encrypt($sString) { GLOBAL $sCryptoKey; $iIV = mcrypt_create_iv (mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND); $sEncrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $sCryptoKey, $sString, MCRYPT_MODE_ECB, $iIV); return($sEncrypted); } // End function my_encrypt function my_decrypt($sString) { GLOBAL $sCryptoKey; $iIV = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND); $sDecrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $sCryptoKey, $sString, MCRYPT_MODE_ECB, $iIV); return(trim($sDecrypted)); } // End function my_decrypt ?> help me please Quote Link to comment https://forums.phpfreaks.com/topic/43433-decrypt-rijndael-with-net/ Share on other sites More sharing options...
btherl Posted March 21, 2007 Share Posted March 21, 2007 You would be better off asking on a .net forum rather than a php forum Quote Link to comment https://forums.phpfreaks.com/topic/43433-decrypt-rijndael-with-net/#findComment-211748 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.