해쉬코드 생성하는 메서드 입니다.(HashCode)

 

public string PassHash(string data)
{ 
	SHA1 sha = SHA1.Create();
	byte[] hashData = sha.ComputeHash(Encoding.Default.GetBytes(data));
	StringBuilder returnValue = new StringBuilder();

	for (int i = 0; i < hashData.Length; i++)
	{
		returnValue.Append(hashData[i].ToString());
	}

	return returnValue.ToString();

}

+ Recent posts