Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the equivalent for SecureString in WinRT?

In the .NET API for Windows Store Apps the SecureString class is missing. Also PasswordBox does not store the password in a secure string. What's the equivalent to store strings securely in a Windows Store App? Or do Windows 8 have some secure mechanism to prevent others from reading the application's memory (or memory dump after deliberately crashed)

like image 893
Jürgen Bayer Avatar asked Dec 29 '12 16:12

Jürgen Bayer


1 Answers

There is none. The omissions in the .NET api for Store apps were made either because a class just could not work in a WinRT app because it relied on unavailable OS support, because the opportunity was there to cut some dead wood in the framework or because the class just plain doesn't make sense in a Store application.

The omission of SecureString heavily favors the "doesn't make sense" explanation. No attacker would ever go through the trouble of trying to dig the string out of multiple gigabytes of swap file data. It is much easier to just download your app from the store and use a debugger in the comfort of his own home.

like image 155
Hans Passant Avatar answered Nov 03 '22 02:11

Hans Passant