Fwd: Proper VARIANT to use for System.Security.Cryptography.RNGCryptoServiceProvider?

From: Date: Mon, 19 Oct 2015 14:52:29 +0000
Subject: Fwd: Proper VARIANT to use for System.Security.Cryptography.RNGCryptoServiceProvider?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-88875@lists.php.net to get a copy of this message
Okay, I've tried both windows@lists.php.net and php.windows@lists.php.net and I give up trying there. ------ Since CAPICOM is deprecated, for users without ext/mcrypt or ext/openssl, I'd like random_compat to work on Windows 7 and later. $rng = new DOTNET( 'mscorlib', 'System.Security.Cryptography.RNGCryptoServiceProvider' ); $variant = new Variant($mystery_one, $mystery_two); $bytes = $rng->GetBytes($variant); Can anyone tell me what to use for $mystery_one and $mystery_two? I can't make heads or tails of ext/com_dotnet in php-src. References: http://stackoverflow.com/questions/6497670/calling-rngcrypto-from-coms-dotnet-class-from-php https://github.com/paragonie/random_compat/issues/67 http://community.sitepoint.com/t/php-and-net-secure-rndnum-generation-using-dotnet-class/86511 Scott Arciszewski Chief Development Officer Paragon Initiative Enterprises <https://paragonie.com>

« previous php.internals (#88875) next »