Quantcast
Channel: hashcat Forum - All Forums
Viewing all articles
Browse latest Browse all 7673

problem in Unicode hashes

$
0
0
hi

i produced hashes from string "1" with following C# code:

public byte[] HashData(string InputText)
{
SHA512Managed managed = new SHA512Managed();
byte[] bytes = Encoding.Unicode.GetBytes(InputText);
return managed.ComputeHash(bytes);
}
public void ByteArrayToString(byte[] ba)
{
StringBuilder hex = new StringBuilder(ba.Length * 2);
foreach (byte b in ba)
hex.AppendFormat("{0:x2}", b);
File.AppendAllText(Environment.CurrentDirectory+"\\"+"hash.txt", hex.ToString());
}
OUTPUT is like this
849b2f3f63322343fddc5a3c8da8f07e4034ee4d5eb210a5ad9db9e33b6aec18dea81836a87f9226​a4636c6c77893b0bd3408f6d1fe225bb0907c556a8111355

and another one with this code:
public byte[] HashData(string InputText)
{
SHA512Managed managed = new SHA512Managed();
byte[] bytes = Encoding.ASCII.GetBytes(InputText);
return managed.ComputeHash(bytes);
}
public void ByteArrayToString(byte[] ba)
{
StringBuilder hex = new StringBuilder(ba.Length * 2);
foreach (byte b in ba)
hex.AppendFormat("{0:x2}", b);
File.AppendAllText(Environment.CurrentDirectory+"\\"+"hash.txt", hex.ToString());
}
output:
4dff4ea340f0a823f15d3f4f01ab62eae0e5da579ccb851f8db9dfe84c58b2b37b89903a740e1ee1​72da793a6e79d560e5f7f9bd058a12a280433ed6fa46510a


hashcat only can find ASCII hashes. there is a way for Unicode hashes??
can i do this with sha256($salt.unicode($pass)) ??

Viewing all articles
Browse latest Browse all 7673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>