skip to main
|
skip to sidebar
Using String In Csharp
String In Csharp
Saturday, May 30, 2009
Protect string content by marshalling
// Protect string content by marshalling
IntPtr bstr = Marshal.SecureStringToBSTR(password);
try
{
// ...
// use the bstr
// ...
}
finally
{
Marshal.ZeroFreeBSTR(bstr);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
All Menu
Followers
About Me
Avinash Tiwari
View my complete profile
No comments:
Post a Comment