Need to use RNGCryptoServiceProvider in PHP, help!

From: Date: Wed, 17 Feb 2010 16:56:27 +0000
Subject: Need to use RNGCryptoServiceProvider in PHP, help!
Groups: php.windows 
Request: Send a blank email to php-windows+get-29909@lists.php.net to get a copy of this message
Hi, I need to use RNGCryptoServiceProvider in PHP. I have tried: $rng = new DOTNET("mscorlib", "System.Security.Cryptography.RNGCryptoServiceProvider"); $arr = array(0); $v = new VARIANT($arr,VT_ARRAY); $rng->GetBytes($v); unset($rng); The component loads fine. But I got this error: Fatal error: Uncaught exception 'com_exception' with message 'Error [0x80070057] The parameter is incorrect. Any ideas?

« previous php.windows (#29909) next »