Posts

Showing posts from August, 2020

convert string to MD5 hash C#

public static string MD5Hash ( string input ) { StringBuilder hash = new StringBuilder (); MD5CryptoServiceProvider md5provider = new MD5CryptoServiceProvider (); byte [] bytes = md5provider . ComputeHash ( new UTF8Encoding (). GetBytes ( input )); for ( int i = 0 ; i < bytes . Length ; i ++) { hash . Append ( bytes [ i ]. ToString ( "x2" )); } return hash . ToString (); }

Free Camtasia studio 9 Key

Camtasia studio 9 9RBCV-DY69D-C3XCC-HM2DL-ADADB

Line break in HTML with '\n'

<span style = " white-space : pre-line " > @Model.CommentText </span>

Sweet Alert Stuff Link

https://sweetalert2.github.io/