Platforms to show: All Mac Windows Linux Cross-Platform

StringXOR2MBS(data as string, XorMask as string, MaskOffset as Integer = 0) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS Util Plugin 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Applies a binary XOR on the bytes from the both strings.
Example
dim s as string = StringXORMBS("Hello", "World")
dim t as string = StringXOR2MBS("Hello", "World")

MsgBox EncodeHex(S)+" "+EncodeHex(t)

dim ss as string = StringXORMBS(s, "World")
dim tt as string = StringXOR2MBS(t, "World")

MsgBox ss+" "+tt

If data is "" or memory is low, the result is "".
If XorMask is shorter as data the XorMask string is used several times.
Returns a string with binary encoding. Before using this function, make sure both strings have the same encoding.

The difference between StringXORMBS and StringXOR2MBS is that the second version xors also with position of byte in string, so your text looks a little bit more random.
MaskOffset specifies where in the XorMask string to start. This is useful for partial blocks.

Blog Entries

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...