• Diigo bookmarks 03/31/2009 (p.m.)

    Posted on March 31st, 2009 countnazgul No comments
    • 8 Excellent Tools to Extract Insights from Twitter Streams

      tags: twitter, microblogging, tools

    • tags: no_tag

      • There is a relatively obscure static method in the System.Web.Security namespace appropriately entitled “HashPasswordForStoringInConfigFile”. You can use this method anywhere, it does not need to be a Web Application. All you need is a reference to the System.Web assembly.

        Here is some sample code to use this:

        using System;
        using System.Collections.Generic;
        using System.Linq;
        using System.Text;
        using System.Web.Security;
        
        namespace HashPassword
        {
            class Program
            {
                static void Main(string[] args)
                {
                  Console.WriteLine("Enter a password to hash:");
                  string password=  Console.ReadLine();
                  string hashed=  System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(password, "SHA1");
                  Console.WriteLine("HASHED: " +hashed);
                  Console.WriteLine("Any key to quit.");
                  Console.ReadLine();
                }
            }
        }

    Posted from Diigo. The rest of my favorite links are here.

    Mixx.net del.icio.us Digg Google Google Reader Dobavi.com Dao.bg Lubimi.com Ping.bg Pipe.bg Svejo.net

    Leave a reply

    You must be logged in to post a comment.
http://cetrk.com/pages/scripts/0008/0707.js