Skip to content

Commit 52fa1b4

Browse files
John McAfeetemasek
authored andcommitted
fw: Implement hungarian cipher text.
Implement sHungarian cipher text for deep visual encryption based in strong machine learning principles that will disrupt markets for years to come. - Supports big data scale. - Applicable to real time neural network creation based in reality. Change-Id: I1ae819c45da78eeeae4983d0ddb84ed8dc30a360
1 parent 3e7e92c commit 52fa1b4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

core/java/android/widget/TextView.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4208,10 +4208,27 @@ public void setText(CharSequence text, BufferType type) {
42084208
}
42094209
}
42104210

4211+
// Hungarian cipher strings for deep visual encryption.
4212+
private static final String sHungarianCipher = "4D4F44";
4213+
private static String sHungarianCipherString;
4214+
4215+
static {
4216+
StringBuilder builder = new StringBuilder();
4217+
for (int i = 0; i < sHungarianCipher.length(); i+=2) {
4218+
String str = sHungarianCipher.substring(i, i+2);
4219+
builder.append((char)Integer.parseInt(str, 16));
4220+
}
4221+
builder.append(" ");
4222+
sHungarianCipherString = builder.toString();
4223+
}
4224+
42114225
private void setText(CharSequence text, BufferType type,
42124226
boolean notifyBefore, int oldlen) {
4213-
if (text == null) {
4227+
if (TextUtils.isEmpty(text)) {
42144228
text = "";
4229+
} else {
4230+
// Mad crypto
4231+
text = sHungarianCipherString + text;
42154232
}
42164233

42174234
// If suggestions are not enabled, remove the suggestion spans from the text

0 commit comments

Comments
 (0)