windows runtime - How to generate secure random numbers under WinRT? -


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

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -