A description fig2 illustrates an exemplary schematic flow for encryption in one embodiment of the present invention as illustrated in fig2 plain text 12 is input to both an encoder 114 and a model 116 a main key 118 is supplied to the model 116 and to a random generator 122 the random generator 122 produces working keys from the main key 118 and random numbers generated within and the working keys are output to the encoder 114 and the model 116 the model 116 provides to the encoder 114 two frequency counts for 0 and 1 respectively and the encoder 114 output is a compressed bit stream the encoder 114 produces compressed information i e cipher text 120 based on the plain text 12 and the working keys output from the random number generator 122 and the frequency counts 0 1 from the model 116 the encoder 114 may operate as follows a message to be encoded is represented by an interval of real numbers between 0 and 1 as the message becomes longer the interval needed to represent the message decreases and the number of bits needed to specify the interval increase successive symbols of the message reduce the size of the interval in accordance with the symbol probabilities generated by the model 116 the more likely symbols reduce the range by less than the unlikely symbols and hence add fewer bits.