-1
private static string GetSHA512(string strPlain)
{
UnicodeEncoding UE = new UnicodeEncoding();
byte[] HashValue, MessageBytes = UE.GetBytes(strPlain);
SHA512Managed SHhash = new SHA512Managed();
string strHex = "";
HashValue = SHhash.ComputeHash(MessageBytes);
foreach (byte b in HashValue)
{
strHex += String.Format("{0:x2}", b);
//strHex += b.ToString();
}
int len = strHex.Length;
//********This strHex of length 128 characters is to be converted to binary
// (actually 512 bit output in binary is required.)**********/
}
아무도 도움을받을 수 있는지 확인하십시오.길이 128의 16 진수로 C에서 이진수로 변환됩니다.
질문은 ...? – tinkertime
바이트 배열을 기본 2의 문자열로 나타내는 방법을 묻는 것으로 가정합니다. –
은 이것과 같은 질문이 아닙니다. http://stackoverflow.com/questions/1892547/sorry-guys-its-hex- 128-length-of-be-converted-to-c-binary-in-c –