Detailed explanation of using csharp and vb files in app_code.
Posts Tagged ‘C#.Net’
Use CS and VB files in App_Code
Posted in Technology, Visual Studio, tagged App_Code, ASP.Net, C#.Net, Class files, Class libraries, Code Compilation, Compilation, VB.Net, Visual Studio, Web.Config on July 11, 2009 | 3 Comments »
MD5 in C#.Net
Posted in Technology, Visual Studio, tagged C#.Net, Encryption, Hash Algorithm, MD5, Security, String Encryption on May 28, 2009 | Leave a Comment »
Below is a sample code which performs MD5 hash algorithm on a simple string. public string GetMD5Hash(string input) { // Create object of MD5 crypto service provider. System.Security.Cryptography.MD5CryptoServiceProvider x = new System.Security.Cryptography.MD5CryptoServiceProvider(); // Convert the string into byte array. byte[] bs = System.Text.Encoding.UTF8.GetBytes(input); // Perform ComputeHash on the byte array which will return the hash [...]
