windows runtime - How to generate secure random numbers under WinRT? -
this question has answer here:
according windows api reference windows store apps, following security related classes available winrt application:
- windows.security.authentication.onlineid
 - windows.security.authentication.web
 - windows.security.credentials
 - windows.security.credentials.ui
 - windows.security.cryptography
 - windows.security.cryptography.certificates
 - windows.security.cryptography.core
 - windows.security.cryptography.dataprotection
 - windows.security.enterprisedata
 - windows.security.exchangeactivesyncprovisioning
 
i checked in windows.security.cryptography , windows.security.cryptography.core, , not locate secure generator (similar rngcryptoserviceprovider). in addition, wincrypt stuff missing.
how 1 generate secure random numbers under windows runtime?
you can generate random numbers calling getbytes method on class. http://msdn.microsoft.com/en-us/library/system.security.cryptography.rngcryptoserviceprovider.aspx
Comments
Post a Comment