我程序中有一段代码:
string text=textBox1.Text .Trim ();
if(textBox1.Text .Trim ()=="")
{
MessageBox.Show ("加密内容不能为空.");
return;
}
MD5CryptoServiceProvider md5=new System.Security.Cryptography.MD5CryptoServiceProvider(); 
byte[]bytValue,bytHash;
bytValue = System.Text.Encoding.UTF8.GetBytes(text);
bytHash = md5.ComputeHash(bytValue);
md5.Clear();
string sTemp="";
for(int i=0;i<bytHash.Length;i++)
{
sTemp+=bytHash[i].ToString("X").PadLeft(2,'0');

}
textBox2.Text =sTemp;
请问,最后一句:sTemp+=bytHash[i].ToString("X").PadLeft(2,'0')
中的].ToString("X")中的X表示转换成什么?
还有.PadLeft(2,'0')这又是什么?
程序没有问题,这是我在网上找的,只有这两点不知道是什么意思.