Microsoft
Software
Hardware
Network
Question : MD5 Hash
Why is it that the last 2 bytes of the hash value are always "="?
This is how I tested it:
Dim MD5 As New System.Security.Cryptograp
hy.MD5Cryp
toServiceP
rovider
Console.WriteLine(Convert.
ToBase64St
ring(MD5.C
omputeHash
(System.Te
xt.ASCIIEn
coding.ASC
II.GetByte
s("test"))
))
Am I doing something wrong?
Answer : MD5 Hash
Because base 64 encodes 3 bytes in 4 characters and pads to a multiple of 4 characters
Random Solutions
Passing Parameters to Crystal Report Viewer - ASP.Net / C#.Net
hide FormView "delete" and "edit" button links programmatically
system interrupt controller missing driver
Trouble running wmi query from .NET
How to identify at runtime if the sw is in debug or release mode (VB.NET)
Creating a directory path string based on choices in a form
Force Data Type on import - Access 2003
Windows messages : How to find the sender of of WM_USER message
Windows 7 IIS
LEFT/RIGHT Joins not working as expected