MCPcopy Create free account
hub / github.com/OreosLab/bili / bv2av

Method bv2av

src/main/java/top/misec/utils/HelpUtil.java:33–43  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

31 }
32
33 public static String bv2av(String s) {
34 long r = 0;
35 for (int i = 0; i < 58; i++) {
36 String s1 = TABLE.substring(i, i + 1);
37 MP.put(s1, i);
38 }
39 for (int i = 0; i < 6; i++) {
40 r = r + MP.get(s.substring(ss[i], ss[i] + 1)) * power(58, i);
41 }
42 return ((r - add) ^ xor) + "";
43 }
44
45 public static String av2bv(String st) {
46 long s = Long.parseLong(st.split("av")[1]);

Callers 2

dailyAvShareMethod · 0.95
coinAddMethod · 0.95

Calls 1

powerMethod · 0.95

Tested by

no test coverage detected