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

Method strToInt

algorithm/TeaEncrypt.java:19–26  ·  view source on GitHub ↗
(String t)

Source from the content-addressed store, hash-verified

17 }
18
19 private static int strToInt(String t) {
20 char[] chs = t.toCharArray();
21 int a = chs[0] << 24;
22 int b = chs[1] << 16;
23 int c = chs[2] << 8;
24 int d = chs[3];
25 return a + b + c + d;
26 }
27
28 private static String intToStr(int v) {
29 int a = (0xFF000000 & v) >> 24;

Callers 1

encryptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected