Udostępnij za pośrednictwem


.NET Secure String

Today we are going to take a look in the System.Security namespace to learn how to create secure strings in .NET Framework. The standard .Net string is stored in managed memory giving you no way to control when it is destroyed. This is not ideal for applications that need to work with sensitive information such as Social Security Numbers or Credit Card numbers. If your application works with this type of data it might be worth taking some time to evaluate the SecureString class.