MCPcopy Create free account
hub / github.com/diyhi/bbs / ConvertTobyte

Method ConvertTobyte

src/main/java/cms/utils/AES.java:95–104  ·  view source on GitHub ↗
(String data)

Source from the content-addressed store, hash-verified

93 }
94
95 private static byte[] ConvertTobyte(String data) {
96 int maxLength = data.length();
97 byte[] by = new byte[maxLength];
98 char[] chars = data.toCharArray();
99 for(int i = 0; i < chars.length; i++) {
100 by[i] = (byte) chars[i];
101 }
102
103 return by;
104 }
105
106}
107

Callers 1

decryptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected