W-EC1 encryption and decryption method and system
OwnerGabor Wieserinventor
Life of this patent
Estimating the term…
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.
Claims12
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.
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.
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.
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.
Dependencies are inferred from the claim text.