MCPcopy Index your code
hub / github.com/XanderYe/dnf / unpack

Method unpack

algorithm/TeaEncrypt.java:45–55  ·  view source on GitHub ↗
(String tmp, int start)

Source from the content-addressed store, hash-verified

43 }
44
45 private static int unpack(String tmp, int start) {
46 char[] arr = tmp.substring(start).toCharArray();
47 int d = arr[0];
48 int c = arr[1];
49 int b = arr[2];
50 int a = arr[3];
51 a = a << 24;
52 b = b << 16;
53 c = c << 8;
54 return a + b + c + d;
55 }
56
57 private static String encrypt(String v) {
58 int v0 = strToInt(v);

Callers 1

encryptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected