1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-25 19:18:01 +02:00

MD5 GetHashCode

This commit is contained in:
Brian Fiete 2024-02-27 11:00:18 -05:00
parent df957137ea
commit a78ca4f393

View file

@ -32,7 +32,7 @@ namespace System.Security.Cryptography
} }
} }
struct MD5Hash : IParseable<MD5Hash> struct MD5Hash : IParseable<MD5Hash>, IHashable
{ {
public uint8[16] mHash; public uint8[16] mHash;
@ -90,6 +90,12 @@ namespace System.Security.Cryptography
#unwarn #unwarn
HashEncode.HashEncode64(((uint64*)&mHash)[1], outStr); HashEncode.HashEncode64(((uint64*)&mHash)[1], outStr);
} }
public int GetHashCode()
{
#unwarn
return *(int*)&mHash;
}
} }
class MD5 class MD5