Hi,
I need to use RNGCryptoServiceProvider in PHP.
I have tried:
The component loads fine.Code:$rng = new DOTNET("mscorlib", "System.Security.Cryptography.RNGCryptoServiceProvider"); $arr = array(0); $v = new VARIANT($arr,VT_ARRAY); $rng->GetBytes($v); unset($rng);
But I got this error: Fatal error: Uncaught exception 'com_exception' with message 'Error [0x80070057] The parameter is incorrect.
Any ideas?


Reply With Quote