# This says Hello World
|
|
|
|
[ 72 101 108 108 111 32 87 111 114 108 100 10 ]
|
|
|
|
# This prints the array above
|
|
|
|
array.print_utf8
|
|
|
|
[ 72 101 108 108 111 32 87 111 114 108 100 10 ]
|
|
# original
|
|
dup array.clone dup
|
|
# original cloned cloned
|
|
32 128 encrypt
|
|
# original cloned
|
|
string.dump
|
|
10 print_utf8
|
|
string.dump
|
|
|
|
# We encrypt 6 times in a row
|
|
[ 84 104 105 115 32 105 115 32 97 110 32 101 120 97 109 112 108 101 32 111 102 32 116 101 120 116 32 116 111 32 98 101 32 101 110 99 114 121 112 116 101 100 32 116 119 105 99 101 46 ]
|
|
dup array.clone
|
|
dup
|
|
33 128 encrypt
|
|
dup
|
|
57 128 encrypt
|
|
dup
|
|
91 128 encrypt
|
|
dup
|
|
33 128 encrypt
|
|
dup
|
|
57 128 encrypt
|
|
dup
|
|
91 128 encrypt
|
|
|
|
# Print encrypted
|
|
dup
|
|
10 print_utf8
|
|
string.dump
|
|
|
|
# We decrypt in reverse order with a key that is the modular inverse of the original (adjacent to subtraction)
|
|
dup
|
|
128 91 - 128 encrypt
|
|
dup
|
|
128 57 - 128 encrypt
|
|
dup
|
|
128 33 - 128 encrypt
|
|
dup
|
|
128 91 - 128 encrypt
|
|
dup
|
|
128 57 - 128 encrypt
|
|
dup
|
|
128 33 - 128 encrypt
|
|
|
|
# Print encrypted then decrypted
|
|
10 print_utf8
|
|
string.dump
|
|
# Print never encrypted
|
|
10 print_utf8
|
|
string.dump
|