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

Method userNameEncode

src/main/java/top/misec/utils/HelpUtil.java:60–66  ·  view source on GitHub ↗
(String userName)

Source from the content-addressed store, hash-verified

58 }
59
60 public static String userNameEncode(String userName) {
61 int s1 = userName.length() / 2;
62 int s2 = (s1 + 1) / 2;
63 return userName.substring(0, s2)
64 + String.join("", Collections.nCopies(s1, "*"))
65 + userName.substring(s1 + s2);
66 }
67
68 public static String utcTime(String utcTime){
69 SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");

Callers 2

runMethod · 0.95
runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected