Utility.md5默认改成utf-8

This commit is contained in:
Redkale
2022-12-07 16:16:02 +08:00
parent 2d92c78c0b
commit 1247c37d71

View File

@@ -2241,7 +2241,7 @@ public final class Utility {
} catch (NoSuchAlgorithmException ex) {
throw new RuntimeException("Couldn't find a MD5 provider", ex);
}
return md5.digest(str.getBytes());
return md5.digest(str.getBytes(StandardCharsets.UTF_8));
}
/**