File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
src/main/java/top/naccl/util Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 130
130
<dependency >
131
131
<groupId >nl.basjes.parse.useragent</groupId >
132
132
<artifactId >yauaa</artifactId >
133
- <version >7.6 .0</version >
133
+ <version >7.11 .0</version >
134
134
</dependency >
135
135
<!-- configuration processor -->
136
136
<dependency >
144
144
<artifactId >java-sdk</artifactId >
145
145
<version >4.2.3</version >
146
146
</dependency >
147
+ <!-- hutool-crypto -->
148
+ <dependency >
149
+ <groupId >cn.hutool</groupId >
150
+ <artifactId >hutool-crypto</artifactId >
151
+ <version >5.8.11</version >
152
+ </dependency >
147
153
148
154
<!-- devtools -->
149
155
<dependency >
Original file line number Diff line number Diff line change 1
1
package top .naccl .util ;
2
2
3
- import org . apache . commons . codec . digest . MurmurHash3 ;
3
+ import cn . hutool . core . lang . hash . MurmurHash ;
4
4
import org .springframework .security .crypto .bcrypt .BCryptPasswordEncoder ;
5
5
import org .springframework .util .DigestUtils ;
6
6
@@ -17,7 +17,7 @@ public static String getMd5(CharSequence str) {
17
17
}
18
18
19
19
public static long getMurmurHash32 (String str ) {
20
- int i = MurmurHash3 .hash32 (str );
20
+ int i = MurmurHash .hash32 (str );
21
21
long num = i < 0 ? Integer .MAX_VALUE - (long ) i : i ;
22
22
return num ;
23
23
}
You can’t perform that action at this time.
0 commit comments