In the text category you can found this block. Somebody can schare me whats this block java code?
TIMAI2
April 14, 2023, 4:20pm
2
You'll not find it in Java I believe, AppInventor handles the obfuscate block at the compile time, and not the runtime, and it's probably written in JS. @ewpatton
anyways, you could find the deobfuscate procedure written in Yail:
((text:toString):trim))
;;; It seems simpler for users to not use regexp patterns here, even though
;;; some people might want that feature.
(define (string-replace-all text substring replacement)
((text:toString):replaceAll (Pattern:quote (substring:toString)) (Matcher:quoteReplacement (replacement:toString))))
(define (string-empty? text)
(= 0 (string-length text)))
(define (text-deobfuscate text confounder)
(let ((lc confounder))
(while (< (string-length lc) (string-length text))
(set! lc (string-append lc lc)))
(do ((i 0 (+ 1 i))
(acc (list))
(len (string-length text)))
((>= i (string-length text)) (list->string (map integer->char (reverse acc))))
(let* ((c (char->integer (string-ref text i)))
(b (bitwise-and (bitwise-xor c (- len i)) 255))
(b2 (bitwise-and (bitwise-xor (bitwise-arithmetic-shift-right c 8) i) 255))