摘要 |
A method and system for encryption/decryption of data, wherein a user is provided with a digital data string comprising a reproducible data sequence (e.g. a picture) which is used by a computer for the generation of a codebook according to a frequency distribution of byte values in the digital data string. Generation of the codebook comprises the steps of: building a first array comprising a plurality of indexable elements, each having an indexable value; allocating, to each element of the first array, a byte value for each occurrence of that byte value in the digital data string; building a second array comprising a plurality of subarrays, each subarray comprising a plurality of indexable elements corresponding to each respective byte value; for element of each subarray, allocating the corresponding index value from the first array corresponding to the byte value from the first array. The codebook is used to encrypt and/or decrypt data.
|