MCPcopy Create free account
hub / github.com/FongMi/TV / addKeys

Method addKeys

app/src/main/java/com/fongmi/android/tv/bean/ClearKey.java:35–43  ·  view source on GitHub ↗
(String line)

Source from the content-addressed store, hash-verified

33 }
34
35 private void addKeys(String line) {
36 int flags = Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP;
37 for (String s : line.split(",")) {
38 String[] a = s.split(":");
39 String kid = Util.base64(Util.hex2byte(a[0].trim()), flags).replace("=", "");
40 String k = Util.base64(Util.hex2byte(a[1].trim()), flags).replace("=", "");
41 keys.add(new Keys(kid, k));
42 }
43 }
44
45 @NonNull
46 @Override

Callers 1

getMethod · 0.95

Calls 5

base64Method · 0.95
hex2byteMethod · 0.95
splitMethod · 0.80
replaceMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected