Encode MD5 using UTF8, might help passwords

This commit is contained in:
cinder
2023-02-03 18:56:32 -06:00
parent 8119fe8057
commit 1d9dfd10d4

View File

@@ -366,7 +366,7 @@ namespace OpenMetaverse
public static string MD5(string str)
{
StringBuilder digest = new StringBuilder(32);
byte[] hash = MD5(Encoding.Default.GetBytes(str));
byte[] hash = MD5(Encoding.UTF8.GetBytes(str));
// Convert the hash to a hex string
foreach (byte b in hash)