Lexie Encryption

Bytes are composed of 8 bits. One bit is represented by either 0 or 1. One byte has 8 bits, so a byte can be represented like this: 11001100. So 1 byte has elements belonging to a set of {0,1}.

In order to encrypt data we can assign the bits to another set of data like this:

0 can belong to every element of {1,2,3,4,5,6,7,8,9} and every bit represented by 1 can belong to a set of data {1,2,3,4,5,6,7,8,9}, as long as there is no intersection between these sets of data: if bit 1 is represented by the value 2 then all the 0 bits representation cannot have the value 2 assigned.

Example one

0 ∈ {1,3,5,7,9} and 1 ∈ {2,4,6,8}

Example two

0 ∈ {2} and 1 ∈ {1,3,4,5,6,7,8,9}

By this assumption the initial byte (11001100) can now look like this:

Example one

24136857

Example two

13224522

In order to add more complexity to the encryption we can add to the bytes encryption a number of 8 figures (between 10000000 and 99999999).

Example one

24136857 + 12345678 = 36482535

Example two

1322452267 + 12345678 = 1334797945

The complete encryption will not assign the byte values in the assigned bit order — it will assign them randomly for every generated bit.

Try it yourself

Set encryption

Digits 1-9 only (0 is not used)

0

1