mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-25 19:18:01 +02:00
MD5 GetHashCode
This commit is contained in:
parent
df957137ea
commit
a78ca4f393
1 changed files with 7 additions and 1 deletions
|
@ -32,7 +32,7 @@ namespace System.Security.Cryptography
|
|||
}
|
||||
}
|
||||
|
||||
struct MD5Hash : IParseable<MD5Hash>
|
||||
struct MD5Hash : IParseable<MD5Hash>, IHashable
|
||||
{
|
||||
public uint8[16] mHash;
|
||||
|
||||
|
@ -90,6 +90,12 @@ namespace System.Security.Cryptography
|
|||
#unwarn
|
||||
HashEncode.HashEncode64(((uint64*)&mHash)[1], outStr);
|
||||
}
|
||||
|
||||
public int GetHashCode()
|
||||
{
|
||||
#unwarn
|
||||
return *(int*)&mHash;
|
||||
}
|
||||
}
|
||||
|
||||
class MD5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue