Mr.

Mr.

Already a Member? Log In to Your Account
Mr.
Added: November 23, 2010
Authority: 32.8564
Type: Blog
Language: English
Category: Security
  Analytics :: more
Latest Posts :: more

Multiline search and replace in Visual Studio

Published on 2012-02-20 11:22:00

Today I had to add a new HttpModule to A LOT of web.configs. Adding it manually would be too tedious, so I had to figure out how to search for a single line in Visual Studio 2010 and replace it with two lines of text. If I could only find a way to search for some text, and replace it with several lines of text! Google turned up some hints about the Regex search, but no apparent solutions. After playing around a bit with the regex search in Visual studio, I found that it supports multiline text

How not to hash passwords in .NET

Published on 2012-01-11 13:15:00

In connection with a bug in TransformTool, I've been looking into how text encoding is handled in the .NET framework. Turns out there are some caveats that can affect the correctness of a program, and when used in e.g. password validation they might turn out to be severe security issues. This post assumes you are somewhat familiar with how character encodings work. You might want to check out my Introduction to character encoding if you're not. I wrote it mainly because I didn't want

Introduction to character encoding

Published on 2012-01-08 13:58:00

"FACE WITH TEARS OF JOY" (U+1F602) Text encoding is a persistent source of pain and problems, especially when you need to communicate textual information across different systems. Every time you read or create an xml-file, a text file, a web page, or an e-mail, the text is encoded in some way. If the encoding is messed up along the way, the receiver will be looking at strange characters instead of the ori�inal t□xt. (ba-da-bing :) I've been fighting with characters sets on several occ



  Related Blogs
Language: English
Language: English
© 2006-2012 OnToplist.com, All Rights Reserved