Utility.md5默认改成utf-8
This commit is contained in:
@@ -2241,7 +2241,7 @@ public final class Utility {
|
|||||||
} catch (NoSuchAlgorithmException ex) {
|
} catch (NoSuchAlgorithmException ex) {
|
||||||
throw new RuntimeException("Couldn't find a MD5 provider", ex);
|
throw new RuntimeException("Couldn't find a MD5 provider", ex);
|
||||||
}
|
}
|
||||||
return md5.digest(str.getBytes());
|
return md5.digest(str.getBytes(StandardCharsets.UTF_8));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user