How to: Use strings in a secure manner with SecureString class(dotnetfacts.blogspot.com)

submitted by eugenciutaeugenciuta(715) 4 years, 1 month ago

The classic System.String type doesn’t provide enough security for storing sensitive data like passwords, credit card numbers or personal information. If a String object contains sensitive information, there is a risk the information could be revealed after it is used because your application cannot delete the data from computer memory. Starting with the .NET Framework 2.0 the SecureString class is available. It was designed to provide encryption for sensitive data and other useful functions.

2 comments |category: |Views: 27

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by CVertexCVertex(325) 4 years, 1 month ago 0

i had no idea this existed, and i just wrote a damned payment system

Reply

posted by alunharfordalunharford(5) 4 years, 1 month ago 0

Anybody attacking a .NET product will do it by attaching a debugger, so this is all pretty pointless.

Since the key and the ciphertext is in memory, they can just use your own code to decrypt it.

Reply

information Login or create an account to comment on this story