# US 2001/0033654 A1 · W-EC1 encryption and decryption method and system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2001/0033654 A1
- Document ID: US20010033654A1
- Status: Published application
- Kind: A1
- Application number: 09/760,262
- Filed: 2001-01-12
- Published: 2001-10-25
- Earliest claimed: 2000-01-13
- Inventors: Gabor Wieser
- Web page: https://patentgrep.com/patent/US20010033654A1

## CPC

- H04L 9/0618: {Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation}
- H04L 2209/08: Randomization, e.g. dummy operations or using noise
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present invention provides an encryption and decryption method and system to encipher and decipher binary data. The operation of the system is controlled by parameter values. The data to be encrypted is divided into blocks of tokens. Multiple copies of these blocks are created. In each token bits are moved into the lowest order bits according to a pattern. The highest order bits are replaced by pseudo-random bits. A series of modulo additions and rotations are performed and then a substitution operation and a transposition operation are performed producing the final cipher text. The decryption method is the reversal of the encryption method.

## Claims

### Claim 1

A method for encrypting binary data comprising of blocks of tokens, which in turn are comprised of bits, into a binary cipher, comprising the steps of:
segregating a block of binary data from the input stream, making multiple copies of it, and moving the significant digits into the lower bits of the tokens according to a predefined pattern;
modifying the said significant digits by adding their location to their values;
replacing the other (non-significant) binary digits by pseudo-random bits;
rotating segments, which are groups of tokens, of the resulting block by values derived from the count of the bits with a predetermined value of one or zero in the said segments;
modifying the tokens by adding their locations to their values;
rotating the resulting block by a value derived from the count of the bits with a predetermined value of one or zero in the block;
performing a token by token substitution transformation on the block by using a private key, which is a permutation of all possible tokens;
performing a token by token transposition transformation on the block, using a private key, which is the permutation of all possible locations.

### Claim 2 (depends on 1)

The system and method as defined in claim 1 wherein the segregation of the blocks is done under the control of two parameters, the t token length (number of bits in a token) and the b block length (number of tokens in a block).

### Claim 3 (depends on 2)

The system and method as defined in claim 2 further comprising the step of inserting one or more authentication tokens into the data at any desired location.

### Claim 4 (depends on 3)

The system and method as defined in claim 3 further comprising the step of making a plurality of copies of the data according to parameter c (the number of copies), and thus generating a complete block.

### Claim 5 (depends on 4)

The method as defined in claim 4 further comprising a method to change the frequency distribution of the tokens in the said complete block by the following steps:
moving the significant bits of each token to the lowest bits according to a pattern for each copy of the data;
summing the location as a binary number and value as a binary number modulo 2t for each token and changing the value of the token to this result;
filling the non-significant bits of the tokens with pseudo-random bits;
generating an Sl rotation amount for each segment and rotating it;
summing the location as a binary number and value as a binary number modulo 2t for each token again;
generating an ST rotation amount for the complete block and rotating it.

### Claim 6 (depends on 5)

The method as defined in claim 5 wherein the pattern for moving the significant bits is a further parameter of the system. This pattern defines which bits are significant in each copy. All combinations work, which satisfy the following criteria: every block has to have at least two significant bits and each source bit has to be represented at least in one copy as significant.

### Claim 7 (depends on 5)

The method as defined in claim 5 further comprising a method to generate a count for segment rotation (Sl) by the following steps:
XORing the bits of the bit displacement value into the token displacement value in reverse order;
rotating the count by one bit to the left;
replacing the lowest order bit by the complement of the second lowest order bit.

### Claim 8 (depends on 5)

The method as defined in claim 5 further comprising a method to generate a count for complete block rotation (ST) by the following steps:
XORing the bits of the bit displacement value into the token displacement and segment displacement values in reverse order;
rotating the count by one bit to the left.

### Claim 9 (depends on 1)

The system and method as defined in claim 1 further comprising a method to encrypt the data by the following steps in any sequence:
performing a token by token substitution transformation on the modified block by using a private key, which is a permutation of all possible tokens;
performing a token by token transposition transformation on the block resulting from the substitution, using a private key, which is the permutation of all possible locations.

### Claim 10

The method to mask token frequencies comprising the steps of:
distributing the bits of a token among a plurality of tokens;
moving these bits to the lowest order bits of the tokens;
replacing the other bits with pseudo-random bits;
summing the location as a binary number and value as a binary number modulo 2t for each token.

### Claim 11

The method to use the count of bits with a predetermined value of one or zero in a bit string as the rotational value for the string.

### Claim 12

A method for decrypting binary data from a binary cipher, comprising the steps of:
performing a token by token transposition transformation on the block, using a private key, which is the reversal key of the encryption key;
performing a token by token substitution transformation on the block by using a private key, which is the reversal key of the encryption key;
rotating the resulting block by a value derived from the count of the bits with a value of one in the block;
modifying the tokens by subtracting their locations from their values;
rotating segments of the resulting block by values derived from the count of the bits with a value of one in the said segments;
modifying the tokens by subtracting their locations from their values;
merging the bits from all the copies according to the reversal pattern of the encryption pattern.
